Resource service data alignment method and device, storage medium and electronic device
By building a data management storage model and synchronization mechanism between different application service platforms, the problems of data management complexity and resource waste are solved, and data interoperability between application service platforms and the expansion of resource service data are realized.
Patent Information
- Application Number
- CN202111074054.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-09-14
AI Technical Summary
In the prior art, due to the independent management of data by each application platform, data management is complex and resource waste, and the effective data connection and synchronization cannot be achieved.
By determining the dependency relationship of resource service data between the first application service side and the second application service side, an adaptive data management storage model is constructed, and the resources of the second application service side are stored on the first application service side according to the model. Service data to realize data synchronization and interoperability.
It realizes data interoperability between different application service platforms, avoids data management complexity and resource waste, and expands the storage and processing scope of resource service data.
Smart Images

Figure CN113722552B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and more particularly to a method and device for aligning resource service data. The present application also relates to a computer storage medium and an electronic device. Background Art
[0002] With the continuous development of Internet technology, the combination of online and offline has made life more and more convenient and enriched.
[0003] Usually, different application platforms can manage and maintain data through their own data management systems, and the application platforms are independent of each other. However, this independent data management model will cause the complexity of data management and waste of management resources, and further hinder the development of the application platform itself. Summary of the invention
[0004] The present application provides a method for aligning resource service data to solve the problems of complex management and waste of management resources in the prior art, which is caused by the fact that data are managed separately by application platform management systems and data cannot be managed in a connected manner.
[0005] This application provides a method for aligning resource service data, including:
[0006] Determine the dependency relationship of related data in the resource service data according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and construct a data management storage model in the first application service side that is adapted to the resource service data in the second application service side;
[0007] According to the data management storage model, storing the resource service data in the second application service side in the management storage layer of the first application service side;
[0008] Acquire a resource service data request generated by the second application service side according to an association relationship established between the first application service side and the second application service side;
[0009] The first application service side and the second application service side are synchronized according to the change data of the resource service data requested.
[0010] In some embodiments, the dependency relationship of related data in the resource service data is determined according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and a data management storage model adapted to the resource service data in the second application service side is constructed in the first application service side, including:
[0011] Determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension;
[0012] The data management storage model is constructed according to the dependency relationship.
[0013] In some embodiments, determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension includes:
[0014] Taking the management storage model in the first application service side as the basic model of the data management storage model, modifying the resource service data dependency in the basic model according to the resource object management storage dimension and the inventory management storage dimension;
[0015] Determine the modified dependency relationship as the dependency relationship of the relevant data in the resource service data;
[0016] or;
[0017] Establishing a dependency relationship of resource service data with the resource object management storage dimension and the inventory management storage dimension;
[0018] The established dependency relationship is determined as the dependency relationship of the relevant data in the resource service data.
[0019] In some embodiments, the management storage model in the first application service side is used as the basic model of the data management storage model, and the resource service data dependency in the basic model is modified according to the resource object management storage dimension and the inventory management storage dimension, or the resource service data dependency is established with the resource object management storage dimension and the inventory management storage dimension, including:
[0020] Modifying or establishing the inventory data in the resource service data to be attached to the resource object;
[0021] Modifying or establishing a resource object source data combination in the resource service data to be attached to the inventory data;
[0022] Modify or establish the detailed data of the resource object source data combination to be attached to the resource object source data combination;
[0023] Modifying or establishing the additional attribute data in the resource service data to be attached to the inventory data;
[0024] modifying or establishing the detailed data of the additional attribute data to be attached to the additional attribute data;
[0025] Modifying or establishing the resource object combination data in the resource service data to be attached to the resource object;
[0026] The detailed data of the resource object combination data is modified or established to be attached to the resource object combination data.
[0027] In some embodiments, obtaining the resource service data request generated by the second application service side according to the association relationship established between the first application service side and the second application service side includes:
[0028] Determine an association relationship between the first application service side and the second application service side according to identification information created by a resource object data provider in the first application service side and the second application service side;
[0029] According to the association relationship, the resource service data request generated based on the resource object request entry of the second application service side is obtained.
[0030] In some embodiments, storing resource service data in the second application service side in the management storage layer of the first application service side according to the data management storage model includes:
[0031] Obtaining, according to a cloud service gateway between the first application service side and the second application service side, a write request for the resource service data in the second application service side;
[0032] According to the write request, the resource service data is written into the first application service side according to the data management storage model.
[0033] In some embodiments, synchronizing the first application service side and the second application service side according to the change data of the resource service data requested includes:
[0034] According to the identification information in the resource service data request, query whether the storage proximal end of the first application service side stores resource service data matching the identification information;
[0035] If not, obtaining the resource object data to be obtained in the resource service data request from the data management storage layer of the first application service side;
[0036] Determine, according to the resource object order information created by the second application service side for the resource object data to be acquired, the change data of the resource service data in the first application service side that matches the resource object order information;
[0037] A synchronous operation of subtracting and modifying the resource service data in the first application service side and the second application service side is performed according to the change data; or, a subtracting and modifying operation is performed on the first application service side according to the change data, and the subtracting and modifying operation is performed on the resource service data in the second application service side that matches the change data.
[0038] In some embodiments, synchronizing the first application service side and the second application service side according to the change data of the resource service data requested includes:
[0039] According to the order information to be obtained generated in the resource service data request, query whether there is a deduction modification record in the resource service data stored in the first application service side;
[0040] If so, a return modification synchronization operation is performed on the first application service side and the second application service side for the deduction modification record; or, based on the return modification operation on the first application service side, the return modification synchronization operation is performed on the resource service data in the second application service side that matches the deduction modification record.
[0041] In some embodiments, synchronizing the first application service side and the second application service side according to the change data of the resource service data requested includes:
[0042] According to the resource object liquidation information in the resource service data request, a liquidation modification synchronization operation is performed on the resource service data stored in the first application service side and the second application service side; or, according to the liquidation modification operation on the resource service data stored in the first application service side, the liquidation modification operation is performed on the resource service data in the second application service side that matches the resource object liquidation information.
[0043] The present application also provides a resource service data alignment device, comprising:
[0044] A construction unit, configured to determine the dependency relationship of related data in the resource service data according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and to construct a data management storage model in the first application service side that is adapted to the resource service data in the second application service side;
[0045] a storage unit, configured to store resource service data in the second application service side in the management storage layer of the first application service side according to the data management storage model;
[0046] an acquisition unit, configured to acquire a resource service data request generated by the second application service side according to an association relationship established between the first application service side and the second application service side;
[0047] A synchronization unit is used to synchronize the first application service side and the second application service side according to the change data of the resource service data requested by the resource service data.
[0048] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;
[0049] When the program is read and executed by a processor, the program executes the steps of adopting the above-mentioned resource service data alignment method.
[0050] The present application also provides an electronic device, comprising:
[0051] processor;
[0052] The memory is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, the steps of the above-mentioned resource service data alignment method are executed.
[0053] Compared with the prior art, this application has the following advantages:
[0054] The resource service data alignment method embodiment provided in the present application can determine the dependency relationship of the relevant data in the resource service data according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, so as to construct a data management storage model adapted to the resource service data in the second application service side for the first application service side, and then the resource service data of the second application service side can be written into the first application service side according to the data management storage model, so as to realize the data connection between the first application service side and the second application service side; according to the association relationship established between the first application service side and the second application service side, obtain the resource service data request generated by the second application service side, and realize the data synchronization between the first application service side and the second application service side when the resource service data changes, so that the resource service data can be obtained not only on the first application service side, but also through the second application service side, and the first application service side and the second application service side can not only realize the processing of their own resource service data but also realize the processing of resource service data from outside the domain to within the domain through the association relationship between each other, so as to further expand the storage, management and processing scope of resource service data for the resource object provider, and at the same time avoid the complexity of data management and the waste of management resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flow chart of an embodiment of a method for aligning resource service data provided by the present application;
[0056] Figure 2 It is a structural diagram of a data management storage model in an embodiment of a resource service data alignment method provided by the present application;
[0057] Figure 3 It is a timing diagram of resource service data storage in an embodiment of a resource service data alignment method provided by the present application;
[0058] Figure 4 It is a timing diagram of a first embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application;
[0059] Figure 5 It is a timing diagram of a second embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application;
[0060] Figure 6 It is a timing diagram of a third embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application;
[0061] Figure 7 It is a structural diagram of an embodiment of a resource service data alignment device provided by the present application;
[0062] Figure 8 It is a structural schematic diagram of an electronic device embodiment provided by the present application. DETAILED DESCRIPTION
[0063] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0064] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.
[0065] Combined with the above background technology, it can be known that with the continuous development of Internet technology, various application service platforms will develop in the direction of intercommunication and coexistence. Therefore, how to manage the intercommunication and coexistence of data from different application service platforms in order to avoid the waste of data management resources and simplify it has become a technical problem that needs to be solved. Based on the above situation, this application provides a method for aligning resource service data, so that the data changes generated on a certain application service platform can be synchronized to another application service platform, so as to realize data intercommunication between different application service platforms. The details are as follows:
[0066] like Figure 1 As shown, Figure 1 The present application provides a flowchart of an embodiment of a method for aligning resource service data, wherein the embodiment of the method for aligning resource service data includes:
[0067] Step S101: Determine the dependency relationship of related data in the resource service data based on the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and construct a data management storage model in the first application service side that is adapted to the resource service data in the second application service side.
[0068] The purpose of step S101 is to build a data management storage model that can adapt to resource service data management in the first application service side when the first application service side is the master side. The master-slave distinction between the first application service side and the second application service side can be determined according to actual data management requirements or according to a subordinate dependency relationship, and is not specifically limited.
[0069] In this embodiment, the first application service side in step S101 can be understood as an in-domain application service side, and the second application service side can be understood as an out-of-domain application service side. Both application service sides can have their own data management system and can perform data processing. For example: the first application service side can be an application software service platform that can provide life services, and the second application service side can be an application terminal device and corresponding application software service (for example: a third-party application service platform) that can provide ordering and / or settlement services. In this embodiment, the first application service side and the second application service side are described as an example of a dependency relationship, which is of course not limited to the case of a dependency relationship. For the ecological application service system, the second application service side can be an ecological application service side that has an association relationship with the first application service side. The so-called ecological application service system can be understood as a system of interaction and mutual influence formed by the ecological environment between application services. Assuming that the second application service side is an out-of-domain application service side for ordering and / or settlement services, it has its own mode of managing commodity data, and the first application service side also includes an in-domain application service side for ordering and / or settlement service functions, it also has its own mode of managing commodity data. In this embodiment, the external application service side (also referred to as the second application service side) stores and manages the goods by attaching them to the inventory management storage dimension, which is also the sku: stock keeping uint (stock keeping unit), which is the unit of measurement of inventory in and out, which can be pieces, boxes, pallets, etc. The internal application service side (also referred to as the first application service side) stores and manages the goods, for example, for ordering food, it can be the dish dimension.
[0070] The resource service data in step S101 may include: resource objects, and related data related to resource objects. In this embodiment, resource objects can be understood as commodities or dishes, and related data may include: attribute data of commodities or dishes (for example: cooking methods, combinations, meal sets, raw materials, etc.), order data involved in ordering, inventory data, etc., which are not listed here one by one. The data management storage model is capable of managing and storing resource service data from the second application service side.
[0071] The specific implementation process of determining the dependency relationship of the relevant data in the resource service data in step S101 may include:
[0072] Step S101-1: determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension;
[0073] Step S101 - 2: construct the data management storage model according to the dependency relationship.
[0074] In this embodiment, the specific implementation process of step S101-1 may include at least two implementation methods, namely:
[0075] Method 1 includes:
[0076] Step S101-11: taking the management storage model in the first application service side as the basic model of the data management storage model, modifying the resource service data dependency in the basic model according to the resource object management storage dimension and the inventory management storage dimension;
[0077] Step S101 - 12: Determine the modified dependency relationship as the dependency relationship of the relevant data in the resource service data.
[0078] Method 2 includes:
[0079] Step S101-21: establishing a dependency relationship of resource service data with the resource object management storage dimension and the inventory management storage dimension;
[0080] Step S101 - 22: Determine the established dependency relationship as the dependency relationship of related data in the resource service data.
[0081] like Figure 2 As shown, the specific implementation process of step S101-11 and step S101-21 may include:
[0082] Modify or establish the inventory data (SKU) in the resource service data to be attached to the resource object;
[0083] The resource object source data combination in the resource service data is modified or established to be attached to the inventory data; wherein the resource object source data combination can be understood as raw material combination data involving raw materials in side dishes or commodities; for example: side dish combination, combination of tomatoes and eggs;
[0084] Modify or establish the detailed data of the resource object source data combination to be attached to the resource object source data combination;
[0085] Modifying or establishing the additional attribute data in the resource service data to be attached to the inventory data;
[0086] modifying or establishing the detailed data of the additional attribute data to be attached to the additional attribute data;
[0087] Modify or establish the resource object combination data in the resource service data to be attached to the resource object; wherein the resource object combination data can be understood as the combination data of commodities or dishes; for example, a set meal combination;
[0088] The detailed data of the resource object combination data is modified or established to be attached to the resource object combination data.
[0089] The dependency relationship can be determined based on the modification of the above-mentioned dependency relationship or the establishment of any one or more combinations thereof, and then the data management storage model can be constructed. The selection of the dependency relationship is determined based on the storage management of the resource service data by the second application service itself, and it only needs to satisfy the first application service side and the second application service side, and of course it can also include the third application service side and / or the fourth application service side.
[0090] Step S102: storing resource service data in the second application service side in the management storage layer of the first application service side according to the data management storage model;
[0091] The purpose of step S102 is to write the resource service data in the second application service side to the first application service side, that is, to store the resource service data of the out-of-domain application service side to the in-domain application service side, so that the in-domain application service side can manage the resource service data of the out-of-domain application service side accordingly, and open up data management services from out-of-domain to in-domain, and / or from in-domain to out-of-domain. Therefore, step S102 can be understood as writing the basic data involved in the resource service data of the second application service side to the first application service side, for example: basic dishes or commodity data are written to the first application service side in the domain, so that the resource service data involving the second application service side can be stored and managed or data processed accordingly in the first application service side.
[0092] In this embodiment, the specific implementation process of step S102 may include:
[0093] Step S102-1: receiving a write request for the resource service data in the second application service side according to a cloud service gateway between the first application service side and the second application service side; wherein, in this embodiment, the cloud service gateway may be a SaaS (Software-as-a-Service) gateway (SaaS-GW);
[0094] Step S102-2: Based on the write request, write the resource service data into the first application service side according to the data management storage model; that is, write the basic data of the second application service side into the second application service side according to the data management storage model.
[0095] The specific process from step S102-1 to step S102-2 can be referred to Figure 3 As shown, Figure 3It is a timing diagram of resource service data storage in an embodiment of a resource service data alignment method provided by the present application. The first application service side sends a write request for basic data to the cloud service gateway, which may also be a synchronization request for basic data. The write request may carry the basic data to be written and identification information, and the identification information may be a cloud service account (SaaS account), that is: a cloud service account is set for each resource data provider in the second application service side, and the cloud service gateway writes the basic data to a matching position on the first application service side according to the mapping relationship between the cloud service account and the first application service side. For example: when the second application service side includes basic data of multiple merchants, the basic data of different merchants are usually different, so a cloud service account can be set for each merchant, and the cloud service account can be mapped to the first application service side, so as to facilitate the basic data of different merchants to be written to a matching position in the first application service side according to the cloud service account mapping relationship, so as to facilitate the storage and management of basic data of different merchants.
[0096] It is understandable that when writing the basic data of the second application service side into the first application service side, the writing can be done directly when the data management storage model is established. There is no specific limitation on the writing of basic data, as long as the basic data of the first application service side can be synchronized to the second application service side.
[0097] like Figure 3 As shown, when the basic data is dish data, the basic dish data of the second application service side is transmitted to the first application service side through the cloud service gateway, and the first application service side stores the basic dish data in the warehouse according to the data management storage model, and returns the storage result to the second application service side. When the merchant publishes the menu through the second application service side, the menu publishing data is also transmitted to the first application service side through the cloud service gateway, and the publishing result is returned to the second application service side. The second application service side can poll the cloud service gateway for the menu publishing status according to the identification information of the published message, and then query the menu publishing status through the first application service side.
[0098] Step S103: acquiring a resource service data request generated by the second application service side according to the association relationship (SaaS account identifier) established between the first application service side and the second application service side;
[0099] The purpose of step S103 is to obtain a resource service data request sent by the second application service side. The specific implementation process may include:
[0100] Step S103-1: Determine the association relationship between the first application service side and the second application service side based on the identification information created by the resource object data provider in the first application service side and the second application service side. The identification information may be a Saas account identification, and the resource object data provider may be understood as a merchant, that is, a merchant having an association relationship with the second application service side, for example, a merchant using the terminal device of the second application service side, which may include: a POS machine on the second application service side, or a small program on the terminal device of the second application service side, that is, a merchant using the service provided by the second application service side, or a merchant that can realize commodity transactions on the second application service side.
[0101] Step S103-2: According to the association relationship, obtain the resource service data request generated based on the resource object request entry of the second application service side; wherein the resource object request entry can be understood as the resource service data request generated by the second application service side terminal device, or the resource service data request generated by the applet of the second application service side. In this embodiment, the resource service data request can be understood as a meal ordering request.
[0102] Step S104: Synchronizing the first application service side and the second application service side according to the change data of the resource service data requested.
[0103] The purpose of step S104 is to synchronize the resource service data inside and outside the domain when the resource service data in the second application service side changes, or when the resource service data related to the second application service side in the first application service side changes. The synchronization can be understood as if the resource service data on one side of the domain changes, then the corresponding resource service data on the other side is also modified according to the change, to ensure that the corresponding resource service data inside and outside the domain remain consistent. That is, after the resource service data in the domain changes, the changed data content is returned to the outside domain so that the corresponding resource service data outside the domain can be adjusted and synchronized; if the resource service data outside the domain changes, the domain changes according to the changes outside the domain. In this embodiment, it mainly involves returning the changes to the first application service side (outside the domain) according to the resource service data request for the resource service data changes on the second application service side (in the domain), so as to synchronize the resource service data inside and outside the domain.
[0104] In this embodiment, the specific implementation process of step S104 may include at least the following three situations.
[0105] like Figure 4 As shown, Figure 4This is a timing diagram of a first embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application. The first case includes:
[0106] Step S104-11: According to the identification information in the resource service data request, query whether the storage proximal end of the first application service side stores resource service data matching the identification information; wherein the identification information may include at least one or more of: the menu id in the order request, the version number of the order application service, and the dish id in the order. The storage proximal end can be understood as a proximal cache layer (such as a proximal dish package) that caches resource objects.
[0107] Step S104-12: If not, obtaining the resource object data to be obtained in the resource service data request from the data management storage layer of the first application service side; wherein the resource object data to be obtained can be understood as food data (such as dish data) in the order request.
[0108] Step S104-13: determining the change data of the resource service data in the first application service side that matches the resource object order information according to the resource object order information created by the second application service side for the resource object data to be acquired;
[0109] Step S104-14: synchronously perform a subtraction and modification operation on the resource service data in the first application service side and the second application service side according to the change data; or, perform a subtraction and modification operation on the first application service side according to the change data, and perform the subtraction and modification operation on the resource service data in the second application service side that matches the change data.
[0110] like Figure 5 As shown, Figure 5 This is a timing diagram of a second embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application. The second case includes:
[0111] Step S104-21: querying whether there is a deduction modification record of the resource service data stored in the first application service side according to the order information to be obtained generated in the resource service data request;
[0112] Step S104-22: If yes, then perform a synchronization operation of returning and modifying the deduction modification record on the first application service side and the second application service side; or, based on the return modification operation on the first application service side, perform the return modification operation on the resource service data in the second application service side that matches the deduction modification record.
[0113] like Figure 6As shown, Figure 6 This is a timing diagram of a third embodiment of resource service data synchronization in an embodiment of a resource service data alignment method provided by the present application. The third case includes:
[0114] Step S104-31: According to the resource object clearing information in the resource service data request, a clearing modification synchronization operation is performed on the resource service data stored in the first application service side and the second application service side; or, according to the clearing modification operation on the resource service data stored in the first application service side, the clearing modification operation is performed on the resource service data in the second application service side that matches the resource object clearing information. In this embodiment, the resource object clearing information can be understood as clearing the meal information.
[0115] The above is a specific description of an embodiment of a resource service data alignment method provided by the present application. It can be learned from the above description that the embodiment of the resource service data alignment method provided by the present application can connect the first application service side and the second application service side, thereby realizing data synchronization when the resource service data changes, so that the resource service data can be obtained not only on the first application service side, but also through the second application service side. The first application service side and the second application service side can not only realize the processing of their own resource service data but also realize the processing of resource service data from outside the domain to within the domain through the association relationship between each other, thereby further expanding the storage, management and processing scope of resource service data for resource object providers.
[0116] The above is a specific description of an embodiment of a resource service data alignment method provided by the present application. Corresponding to the embodiment of a resource service data alignment method provided above, the present application also discloses an embodiment of a resource service data alignment device, please refer to Figure 7 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.
[0117] like Figure 7 As shown, the alignment device embodiment includes:
[0118] The construction unit 701 is used to construct a data management storage model adapted to the resource service data in the second application service side in the first application service side by using the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side.
[0119] In this embodiment, the construction unit 701 includes: a dependency determination subunit, which is used to determine the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension; the construction unit 701 is specifically used to construct the data management storage model according to the dependency relationship.
[0120] Wherein, the dependency determination subunit includes: a modification subunit and a determination subunit. The modification subunit is used to take the management storage model in the first application service side as the basic model of the data management storage model, and modify the resource service data dependency in the basic model according to the resource object management storage dimension and the inventory management storage dimension; the determination subunit is used to determine the modified dependency as the dependency of the relevant data in the resource service data. Or, it includes: an establishment subunit and a determination subunit. The establishment subunit is used to establish the dependency of the resource service data with the resource object management storage dimension and the inventory management storage dimension; the determination subunit is used to determine the established dependency as the dependency of the relevant data in the resource service data.
[0121] The above-mentioned modification subunit and / or establishment subunit may include modification or establishment of any one or more combinations of the following dependency relationships:
[0122] Modify or establish the inventory data (e.g., SKU) in the resource service data to be attached to the resource object;
[0123] Modify or establish a resource object source data combination (e.g., a side dish group) in the resource service data to be attached to the inventory data;
[0124] Modify or establish the detailed data of the resource object source data combination to be attached to the resource object source data combination;
[0125] Modifying or establishing the additional attribute data in the resource service data to be attached to the inventory data;
[0126] modifying or establishing the detailed data of the additional attribute data to be attached to the additional attribute data;
[0127] Modify or establish resource object combination data (e.g., package group) in the resource service data to be attached to the resource object;
[0128] The detailed data of the resource object combination data is modified or established to be attached to the resource object combination data.
[0129] For the specific content of the construction unit 701, reference may be made to the description of the above step S101, which will not be repeated here.
[0130] The storage unit 702 is used to store the resource service data in the second application service side in the management storage layer of the first application service side according to the data management storage model.
[0131] In this embodiment, the storage unit 702 may include: an acquisition subunit and a writing subunit. The acquisition subunit is used to acquire a write request for the resource service data in the second application service side according to the cloud service gateway between the first application service side and the second application service side; the writing subunit is used to write the resource service data into the first application service side according to the write request according to the data management storage model.
[0132] For the specific content of the storage unit 702, please refer to the description of step S102 above, which will not be repeated here.
[0133] The acquisition unit 703 is used to acquire the resource service data request generated by the second application service side according to the association relationship established between the first application service side and the second application service side.
[0134] In this embodiment, the acquisition unit 703 may include: a relationship determination subunit and an acquisition subunit. The relationship determination subunit is used to determine the association relationship between the first application service side and the second application service side according to the identification information created by the resource object data provider in the first application service side and the second application service side; the acquisition subunit is used to acquire the resource service data request generated based on the resource object request entry of the second application service side according to the association relationship.
[0135] The synchronization unit 704 is configured to synchronize the first application service side with the second application service side according to the change data of the resource service data requested.
[0136] In this embodiment, the synchronization unit 704 can be in at least the following three situations:
[0137] The first scenario can include:
[0138] A query subunit, configured to query, based on the identification information in the resource service data request, whether resource service data matching the identification information is stored in the first application service side;
[0139] A first synchronization subunit, configured to synchronize the resource object data to be acquired in the resource service data request to the first application service side and the second application service side when the query result of the query subunit is negative;
[0140] a change data determination subunit, configured to determine the change data of the resource service data in the first application service side that matches the resource object order information according to the resource object order information created by the second application service side for the resource object data to be acquired;
[0141] The second synchronization sub-unit is used to perform a synchronization operation of subtracting and modifying the resource service data in the first application service side and the second application service side according to the change data; or, based on the subtracting and modifying operation on the first application service side according to the change data, perform the subtracting and modifying operation on the resource service data in the second application service side that matches the change data.
[0142] The second scenario may include:
[0143] A query subunit, configured to query whether there is a deduction modification record in the resource service data stored in the first application service side according to the order information to be obtained generated in the resource service data request;
[0144] A synchronization subunit is used to perform a return modification synchronization operation on the first application service side and the second application service side for the deduction modification record when the query result of the query subunit is yes; or, based on the return modification operation on the first application service side, perform the return modification synchronization operation on the resource service data in the second application service side that matches the deduction modification record.
[0145] The third scenario may include:
[0146] A clearing synchronization subunit is used to perform a clearing modification synchronization operation on the resource service data stored in the first application service side and the second application service side according to the resource object clearing information in the resource service data request; or, based on the clearing modification operation on the resource service data stored in the first application service side, perform a clearing modification synchronization operation on the resource service data in the second application service side that matches the resource object clearing information.
[0147] For the specific contents of the above three situations, please refer to the specific contents of the above step S104, which will not be repeated here.
[0148] Based on the above content, the present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;
[0149] When the program is read and executed by a processor, the program executes the steps in the embodiment of the resource service data alignment method as described above.
[0150] Based on the above content, the present application also provides an electronic device, such as Figure 8 As shown, the electronic device embodiment includes:
[0151] Processor 801;
[0152] The memory 802 is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, the program executes the steps of the embodiment of the resource service data alignment method as described above.
[0153] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0154] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0155] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0156] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can 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 code.
[0157] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A method for aligning resource service data, characterized in that: include: According to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, the dependency relationship of the related data in the resource service data is determined, and a data management storage model adapted to the resource service data in the second application service side is constructed in the first application service side; wherein the first application service side is an in-domain application service side; and the second application service side is an out-of-domain application service side; According to the data management storage model, storing the resource service data in the second application service side in the management storage layer of the first application service side; Acquire a resource service data request generated by the second application service side according to the association relationship established between the first application service side and the second application service side; The first application service side and the second application service side are synchronized according to the change data of the resource service data requested.
2. The method for aligning resource service data according to claim 1, characterized in that: The step of determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and constructing a data management storage model in the first application service side that is adapted to the resource service data in the second application service side, includes: Determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension; The data management storage model is constructed according to the dependency relationship.
3. The method for aligning resource service data according to claim 2, characterized in that: The step of determining the dependency relationship of related data in the resource service data according to the resource object management storage dimension and the inventory management storage dimension includes: Taking the management storage model in the first application service side as the basic model of the data management storage model, modifying the resource service data dependency in the basic model according to the resource object management storage dimension and the inventory management storage dimension; Determine the modified dependency relationship as the dependency relationship of the relevant data in the resource service data; or; Establishing a dependency relationship of resource service data with the resource object management storage dimension and the inventory management storage dimension; The established dependency relationship is determined as the dependency relationship of the relevant data in the resource service data.
4. The method for aligning resource service data according to claim 3, characterized in that: The method of using the management storage model in the first application service side as the basic model of the data management storage model and modifying the resource service data dependency in the basic model according to the resource object management storage dimension and the inventory management storage dimension, or establishing the resource service data dependency with the resource object management storage dimension and the inventory management storage dimension, comprises: Modifying or establishing the inventory data in the resource service data to be attached to the resource object; Modifying or establishing a resource object source data combination in the resource service data to be attached to the inventory data; Modify or establish the detailed data of the resource object source data combination to be attached to the resource object source data combination; Modifying or establishing the additional attribute data in the resource service data to be attached to the inventory data; modifying or establishing the detailed data of the additional attribute data to be attached to the additional attribute data; Modifying or establishing the resource object combination data in the resource service data to be attached to the resource object; The detailed data of the resource object combination data is modified or established to be attached to the resource object combination data.
5. The method for aligning resource service data according to claim 1, characterized in that: The acquiring, according to the association relationship established between the first application service side and the second application service side, a resource service data request generated by the second application service side, comprises: Determine an association relationship between the first application service side and the second application service side according to identification information created by a resource object data provider in the first application service side and the second application service side; According to the association relationship, the resource service data request generated based on the resource object request entry of the second application service side is obtained.
6. The method for aligning resource service data according to claim 1, characterized in that: According to the data management storage model, storing the resource service data in the second application service side in the management storage layer of the first application service side includes: Obtaining, according to a cloud service gateway between the first application service side and the second application service side, a write request for the resource service data in the second application service side; According to the write request, the resource service data is written into the first application service side according to the data management storage model.
7. The method for aligning resource service data according to claim 1, characterized in that: The step of synchronizing the first application service side and the second application service side with respect to the change data of the resource service data according to the resource service data request includes: According to the identification information in the resource service data request, query whether the storage proximal end of the first application service side stores resource service data matching the identification information; If not, obtaining the resource object data to be obtained in the resource service data request from the data management storage layer of the first application service side; Determine, according to the resource object order information created by the second application service side for the resource object data to be acquired, the change data of the resource service data in the first application service side that matches the resource object order information; A synchronous operation of subtracting and modifying the resource service data in the first application service side and the second application service side is performed according to the change data; or, a subtracting and modifying operation is performed on the first application service side according to the change data, and the subtracting and modifying operation is performed on the resource service data in the second application service side that matches the change data.
8. The method for aligning resource service data according to claim 1, characterized in that: The step of synchronizing the first application service side and the second application service side with respect to the change data of the resource service data according to the resource service data request includes: According to the order information to be obtained generated in the resource service data request, query whether there is a deduction modification record in the resource service data stored in the first application service side; If so, a return modification synchronization operation is performed on the first application service side and the second application service side for the deduction modification record; or, based on the return modification operation on the first application service side, the return modification synchronization operation is performed on the resource service data in the second application service side that matches the deduction modification record.
9. The method for aligning resource service data according to claim 1, characterized in that: The step of synchronizing the first application service side and the second application service side with respect to the change data of the resource service data according to the resource service data request includes: According to the resource object liquidation information in the resource service data request, a liquidation modification synchronization operation is performed on the resource service data stored in the first application service side and the second application service side; or, according to the liquidation modification operation on the resource service data stored in the first application service side, the liquidation modification operation is performed on the resource service data in the second application service side that matches the resource object liquidation information.
10. A resource service data alignment device, characterized in that: include: A construction unit, configured to determine the dependency relationship of related data in the resource service data according to the resource object management storage dimension of the resource service data in the first application service side and the inventory management storage dimension of the resource service data in the second application service side, and to construct a data management storage model adapted to the resource service data in the second application service side in the first application service side; wherein the first application service side is an in-domain application service side; and the second application service side is an out-of-domain application service side; a storage unit, configured to store resource service data in the second application service side in the management storage layer of the first application service side according to the data management storage model; an acquisition unit, configured to acquire a resource service data request generated by the second application service side according to an association relationship established between the first application service side and the second application service side; A synchronization unit is used to synchronize the first application service side and the second application service side according to the change data of the resource service data requested by the resource service data.
11. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed by a processor, the program executes the steps of the resource service data alignment method described in any one of claims 1 to 9.
12. An electronic device comprising: processor; A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the program executes the steps of the resource service data alignment method described in any one of claims 1 to 9.
Citation Information
Patent Citations
Method, apparatus and apparatus for providing and outputting business object inventory data
CN109062975A
Data synchronization method
CN111241192A