Order approval method and device based on distributed cloud scene, equipment and medium
By generating and approving target orders in a distributed cloud scenario, the problem of data inconsistency between distributed nodes and cloud management systems in a government cloud scenario is solved, achieving real-time consistency of order data and improving management quality.
Patent Information
- Application Number
- CN202410948981.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-08
AI Technical Summary
In the government cloud scenario, data inconsistency issues between distributed nodes and cloud centralized management systems lead to data inconsistency caused by lack of coherence in management and delays in order uploading.
By generating target orders in a distributed cloud scenario, it is determined whether there are resources that have not been successfully implemented in the order, and the product specification information is verified. If the order complies with the rules, the order is uploaded to the cloud centralized node for approval, and the order is processed after obtaining the approval results. Implement operations to form a closed loop to ensure data consistency.
It achieves real-time consistency between the cloud centralized management system and distributed node order data, improves management quality and efficiency, avoids defects in post-approval, and optimizes the approval process.
Smart Images

Figure CN118747633A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an order approval method, device, equipment and medium based on a distributed cloud scenario. Background Art
[0002] In the government cloud scenario, cloud service providers usually operate dozens of cloud computing centers. Due to the particularity of their operating model, resource activation, change, and cancellation operations generally require an approval process. Only after approval is completed can resource activation and other operations be performed. In the traditional model, cloud centers all have locally deployed cloud management platforms. Operators log in to the cloud management platform to fill in the necessary information and upload relevant attachments before submitting for approval. After the local operation manager completes the approval, the implementation personnel will implement the resources, and after the implementation is completed, the order will be archived. Government cloud service providers generally upload completed orders to the cloud centralized node for further operations such as billing. The problem arising from this operating model is that the relatively independent operations of distributed nodes and cloud aggregation nodes lead to a lack of management consistency. Another problem is that the upload delay of local orders will lead to inconsistent data between the centralized management system and each distributed node. Therefore, how to keep the order data of the cloud centralized management system and the edge distributed node instance consistent needs to be solved. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide an order approval method, device, equipment and medium based on a distributed cloud scenario, which can make the data in the centralized management system and the distributed cloud center management system consistent, thereby achieving the effect of improving management quality. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses an order approval method based on a distributed cloud scenario, which is applied to each distributed node in the distributed cloud scenario, including:
[0005] Generate a corresponding target order based on order-related parameter information, and determine whether there are resources in the target order that have not been successfully implemented;
[0006] If there are no unsuccessfully implemented resources in the target order, determining whether the commodity specification information in the target order is compliant;
[0007] If the product specification information is compliant, the target order is uploaded to a preset cloud centralized node for approval;
[0008] The approval result issued by the preset cloud-based centralized node is obtained, and based on the approval result and the preset underlying platform, the resources corresponding to the target order are called to perform order implementation operations, and then an order completion notification is sent to the preset cloud-based centralized node.
[0009] Optionally, if there is no unsuccessfully implemented resource in the target order, determining whether the commodity specification information in the target order is compliant includes:
[0010] If there are no resources in the target order that have not been successfully implemented;
[0011] Extracting product specification related information based on the order related parameter information, and extracting core comparison parameters from a local database;
[0012] A product core parameter cyclic check is performed based on the product specification related information and the core comparison parameters to determine whether the product specification information in the target order is compliant.
[0013] Optionally, after generating a corresponding target order based on the order-related parameter information and determining whether there are any resources in the target order that have not been successfully implemented, the method further includes:
[0014] If there are resources in the target order that have not been successfully implemented;
[0015] Calling the historical orders corresponding to the resources that have not been successfully implemented in the target order through the first preset calling interface;
[0016] Determine the remaining resource balance quantity and specific specification message information from the historical order, and determine whether the resource balance quantity is consistent with the resource quantity that has not been successfully implemented in the target order;
[0017] If the quantity is consistent, then calling the preset tool class method to determine whether the specific specification message information is consistent with the core parameter information of the resource that has not been successfully implemented in the target order;
[0018] If the specific specification message information is consistent with the core parameter information, the step of uploading the target order to a preset cloud centralized node for approval is performed.
[0019] Optionally, uploading the target order to a preset cloud centralized node for approval includes:
[0020] Uploading the target order directly to a preset cloud centralized node for approval through a second preset calling interface;
[0021] Alternatively, the target order is encrypted by symmetric encryption to obtain an encrypted order, and the encrypted order is uploaded to a preset cloud centralized node for approval.
[0022] Optionally, obtaining the approval result issued by the preset cloud centralized node includes:
[0023] Monitor the message queue of the preset cloud centralized node, and obtain information about changes in the message queue to obtain the approval result issued by the preset cloud centralized node;
[0024] Or, the approval result is periodically pulled from the preset cloud centralized node through a third preset calling interface.
[0025] Optionally, after the order implementation operation is performed by calling the resources corresponding to the target order based on the approval result and the preset underlying platform, the method further includes:
[0026] Determine whether there is a failure in implementing the operation of the resources corresponding to the target order;
[0027] If the resource corresponding to the target order has an implementation operation failure, obtaining an operation instruction issued in response to the implementation operation failure;
[0028] If the operation instruction is the first operation instruction, sending a notification message of operation failure to the preset cloud centralized node;
[0029] If the operation instruction is the second operation instruction, the target order is determined as a historical order, and the remaining resource balance quantity and specific specification message information in the target order are stored locally.
[0030] Optionally, after the order implementation operation is performed by calling the resources corresponding to the target order based on the approval result and the preset underlying platform, the method further includes:
[0031] Obtaining a resource status modification instruction, and determining a modification dimension in the target order in a preset conversion granularity selection interface based on the resource status modification instruction;
[0032] Determine the resources to be modified in the first state in the target order based on the modification dimension, and obtain historical order association instructions;
[0033] Acquire historical order information corresponding to the resource to be modified in the first state based on the historical order association instruction;
[0034] The resources in the second state to be modified in the historical order information are determined based on the resources in the first state to be modified, and the resource states of the resources in the first state to be modified and the resources in the second state to be modified are updated.
[0035] In a second aspect, the present application discloses an order approval device based on a distributed cloud scenario, which is applied to each distributed node in the distributed cloud scenario, including:
[0036] A resource judgment module is used to generate a corresponding target order based on order-related parameter information, and to judge whether there are any resources in the target order that have not been successfully implemented;
[0037] An order information judgment module, configured to judge whether the commodity specification information in the target order is compliant if there are no unsuccessfully implemented resources in the target order;
[0038] An order approval module is used to upload the target order to a preset cloud centralized node for approval if the commodity specification information is compliant;
[0039] The order implementation module is used to obtain the approval result issued by the preset cloud-based centralized node, and based on the approval result and the preset underlying platform, call the resources corresponding to the target order to perform order implementation operations, and then send an order completion notification to the preset cloud-based centralized node.
[0040] In a third aspect, the present application discloses an electronic device, comprising:
[0041] Memory, used to store computer programs;
[0042] A processor is used to execute the computer program to implement the aforementioned order approval method based on the distributed cloud scenario.
[0043] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned order approval method based on a distributed cloud scenario.
[0044] It can be seen that in this application, a corresponding target order is generated based on order-related parameter information, and it is determined whether there are resources in the target order that have not been successfully implemented; if there are no resources in the target order that have not been successfully implemented, it is determined whether the commodity specification information in the target order is compliant. If the commodity specification information is compliant, the target order is uploaded to the preset cloud-based centralized node for approval; the approval result issued by the preset cloud-based centralized node is obtained, and the resources corresponding to the target order are called based on the approval result and the preset underlying platform to perform order implementation operations, and then an order completion notification is sent to the preset cloud-based centralized node. That is, the original approval and supervision link is adjusted from post-processing to prior approval; the order information that needs to apply for resources is first uploaded to the centralized processing center for approval, and after the approval is completed, it is sent to the distributed node for implementation. In this way, through distributed node application, centralized node approval, distributed node implementation, and the final result is uploaded to the centralized node, the operation forms a closed loop to achieve the purpose of data consistency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0046] Figure 1 A flow chart of an order approval method based on a distributed cloud scenario disclosed in this application;
[0047] Figure 2 A flow chart of a specific resource state conversion method disclosed in this application;
[0048] Figure 3 A flowchart of a specific order approval method based on a distributed cloud scenario disclosed in this application;
[0049] Figure 4 A flowchart of a specific order approval method based on a distributed cloud scenario disclosed in this application;
[0050] Figure 5 A specific historical order verification method flow chart disclosed in this application;
[0051] Figure 6 A specific network architecture diagram based on a distributed cloud scenario disclosed in this application;
[0052] Figure 7 This is a schematic diagram of the structure of an order approval device based on a distributed cloud scenario disclosed in this application;
[0053] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] In order to solve the problem of inconsistency between order data in the cloud-based centralized management system and the edge distributed node instances, this application will specifically introduce an order approval method based on a distributed cloud scenario.
[0056] See also Figure 1As shown, the embodiment of the present application discloses an order approval method based on a distributed cloud scenario, which is applied to each distributed node in the distributed cloud scenario, including:
[0057] Step S11: Generate a corresponding target order based on order-related parameter information, and determine whether there are resources in the target order that have not been successfully implemented.
[0058] In this embodiment, generally speaking, in the process of generating an order, it is necessary to select the specification configuration of a specific product, such as the CPU (Central Processing Unit) and memory parameters of the cloud server. After the assembly of the order shopping cart is completed, it is necessary to further verify the parameters and the dynamic part of whether the underlying layer supports it. In this embodiment, the submitted data is verified for two different types of orders respectively. That is, it is determined whether there are resources in the target order that have not been successfully implemented.
[0059] Step S12: If there are no unsuccessfully implemented resources in the target order, determine whether the commodity specification information in the target order is compliant.
[0060] In this embodiment, if there are no unsuccessfully implemented resources in the target order, then judging whether the commodity specification information in the target order is compliant includes: if there are no unsuccessfully implemented resources in the target order, extracting commodity specification related information based on the order related parameter information, and extracting core comparison parameters from the local database; performing commodity core parameter cyclic verification based on the commodity specification related information and the core comparison parameters to judge whether the commodity specification information in the target order is compliant. That is, for a newly generated order, the required items such as the billing items of the specific commodity in the submitted order are verified by calling the local commodity data verification Rest interface.
[0061] Step S13: If the product specification information is compliant, the target order is uploaded to a preset cloud centralized node for approval.
[0062] In this embodiment, uploading the target order to a preset cloud centralized node for approval includes: uploading the target order directly to a preset cloud centralized node for approval through a second preset call interface; or, encrypting the target order by symmetric encryption to obtain an encrypted order, and uploading the encrypted order to a preset cloud centralized node for approval. For the scenario of distributed management, the data interaction between the centralized system and each distributed node usually needs to consider the confidentiality of the data transmission process. Generally speaking, the order will contain the order content and the attachment content. In this scenario, since the data of the attachment is large, this scheme adopts the method of separating the order message from the attachment for uploading to transmit the data. Therefore, in this embodiment, the attachment is separated from the order message for data transmission. For the transmission channel, the https protocol is used for data transmission. The attachment data is relatively sensitive to the order data. For this data, a single file is usually large. In the transmission process of such data, it is necessary to weigh the impact of the size on encryption and transmission performance. In this scheme, confidentiality and the impact of the action on the system are taken into account. The attachment is encrypted by an agreed symmetric encryption method. Specifically, the order information is uploaded in two parts: the filled order message is uploaded through the Rest interface, and the attachment is encrypted by symmetric encryption. The salt value and encryption algorithm used for encryption are agreed in advance. This takes into account both data security and data processing and transmission efficiency.
[0063] Step S14: obtaining the approval result issued by the preset cloud-based centralized node, and based on the approval result and the preset underlying platform, calling the resources corresponding to the target order to perform order implementation operations, and then sending an order completion notification to the preset cloud-based centralized node.
[0064] In this embodiment, the obtaining of the approval result issued by the preset cloud centralized node includes: monitoring the message queue of the preset cloud centralized node, and obtaining the information of the change of the message queue to obtain the approval result issued by the preset cloud centralized node; or, periodically pulling the approval result from the preset cloud centralized node through the third preset calling interface. For management systems with cloud-edge mode deployment, the consistency of basic data between the cloud system and the distributed system is the first problem to be solved. For cloud computing management systems, data such as commodity data, tenant information, and user information are generally the data basis of the system. In this scenario, such data is generally maintained and issued through a centralized management system. The maintenance of basic data is a configuration and data basis for various subsequent functions, and is also an indispensable guarantee for the normal use of functions. Therefore, in this embodiment, three different ways of obtaining such data are supported. The first way is to generate data in the centralized management system and then spit the message into the message queue, and each distributed system refreshes the local data by monitoring the corresponding topic changes. The second mode is that the distributed system calls the Rest interface provided by the centralized system every day through a scheduled task to pull data. The last method is an extension of the second method. It triggers data pulling and updates local data by manually calling the Rest interface. Because the cloud's main responsibility is to approve submitted orders, and the cloud sends the approval results to the corresponding topic of the message queue. Distributed nodes pull data and refresh local data by listening to changes in data in the corresponding topic. Similarly, when data changes at each distributed node need to be notified to the centralized management system, this is achieved by calling the Rest interface. This method is usually used when the distributed system is implemented or fails and the cloud system status needs to be notified.
[0065] In this embodiment, after the centralized management node completes the approval of the order content, it is time for the implementation of the distributed node. For distributed nodes, the implementation process may be completely successful, partially successful, and completely failed. Generally speaking, the failed scenario can be repeatedly implemented. However, in the actual production environment, it may be transformed into a form of persistent failure due to insufficient underlying resources and other reasons. Therefore, in this embodiment, after the resource corresponding to the target order is called based on the approval result and the preset underlying platform to perform the order implementation operation, it also includes: judging whether the resource corresponding to the target order has a situation of failed implementation operation; if the resource corresponding to the target order has a situation of failed implementation operation, then obtaining the operation instruction issued in the case of failed implementation operation; if the operation instruction is the first operation instruction, then sending a notification message of failed implementation operation to the preset cloud centralized node; if the operation instruction is the second operation instruction, then determining the target order as a historical order, and storing the remaining resource balance and specific specification message information in the target order locally. In order to deal with this situation, the orders with such abnormal implementation are divided into two categories, one of which is to notify the center side of the result of the failed implementation and mark the order completion in the local system and no subsequent implementation will be carried out. One scenario is to only mark locally. In subsequent new order submissions, as long as the order number is associated, there is no need to submit for approval. This method optimizes the approval process, reuses the original approval results for some special orders, and reduces the approval workload.
[0066] For the resources applied for in the target order, there are generally two states, namely, trial stage resources and formal use stage resources. Trial stage resources are usually free of charge. For a single resource application form, there may be a situation where multiple devices are applied for at the same time. And the trial period for each device is also different. This creates a scenario where there may be certain differences in the nodes that convert the instance status in the order to the formally used instance. Therefore, the state conversion is compatible with the entire order dimension and the specific cloud resource instance dimension. For a single instance, there may be multiple specification changes in its life cycle, resulting in multiple change orders. For this scenario, you can modify the order to the order status of the entire current interval by selecting an order in the history. This allows for flexible management of the state of the instance life cycle. That is, if Figure 2As shown, for trial stage resources, after the resource corresponding to the target order is called based on the approval result and the preset underlying platform to perform order implementation operations, it also includes: obtaining resource status modification instructions, and determining the modification dimension in the target order based on the resource status modification instructions in the preset conversion granularity selection interface; determining the first state to be modified resources in the target order based on the modification dimension, and obtaining historical order association instructions; obtaining historical order information corresponding to the first state to be modified resources based on the historical order association instructions; determining the second state to be modified resources in the historical order information based on the first state to be modified resources, and updating the resource status of the first state to be modified resources and the second state to be modified resources. Specifically, that is, in the resource usage state, the resource status modification instruction is obtained, jumps to the determination conversion strength selection interface, and then selects the specific resource dimension or order dimension. If it is the order dimension, all trial resources under the target order are determined; if it is the specific resource dimension, the target resource is determined from all resources. After forming the list of pending resources, it is determined whether the resources in the pending resource list have been applied for trial in the historical order. If so, the resource status in the historical order is corrected. If correction is required, the resources in the historical order that need to be corrected are also added to the pending resource list. Then these resources are transferred from trial stage resources to formal use stage resources and settled.
[0067] Further, in this embodiment, for a completed order, it is generally necessary to upload the order information to the cloud centralized management system to perform billing operations on the order and resources. For the locally deployed cloud management platform, this process generally has order implementation completion and archiving links after the resource implementation is completed. It is generally believed that order upload and resource billing operations will be performed after archiving. In order to adapt to the dynamics of the implementation to the final archiving process, multiple uploads of order data are supported in the order completion state, and the instance state in the final order is uploaded after the order is archived. It cannot be modified thereafter. In addition, it is a very common situation that there are abnormal situations in each environment of the order in the entire link. The processing of abnormal orders usually stems from two situations: one is an order that has not been archived for an extended period of time. Such orders generally have some resources that have not been implemented or the final archive files have not been submitted after the implementation is completed. The other category is the existing test resources, which have not been archived after exceeding the longest test cycle. For the above two situations, this solution will judge in real time based on the data, and finally form a message notification of the abnormal order, and notify the relevant stakeholders by email.
[0068] It can be seen that in this embodiment, the corresponding target order is generated based on the order-related parameter information, and it is determined whether there are resources that have not been successfully implemented in the target order; if there are no resources that have not been successfully implemented in the target order, it is determined whether the commodity specification information in the target order is compliant. If the commodity specification information is compliant, the target order is uploaded to the preset cloud centralized node for approval; the approval result issued by the preset cloud centralized node is obtained, and the resources corresponding to the target order are called based on the approval result and the preset underlying platform to perform the order implementation operation, and then the order completion notification is sent to the preset cloud centralized node. That is, the original approval and supervision link is adjusted from post-processing to pre-approval; the order information that needs to apply for resources is first uploaded to the centralized processing center for approval, and after the approval is completed, it is sent to the distributed node for implementation. In this way, through the distributed node application, centralized node approval, distributed node implementation, and the final result is uploaded to the centralized node, the operation is closed-loop to achieve the purpose of data consistency. In addition, after the local state of the distributed end changes, the Rest interface is called. For the cloud system, each distributed system is notified by pushing the changes of orders and other conditions to the message queue in real time. Each distributed node refreshes local data in real time by monitoring changes in the corresponding topic, thereby implementing updates to the entire link order and instance status, and providing efficient management of the entire link of the system.
[0069] like Figure 3 As shown, the submitted data is verified for two different types of orders. In addition to verifying the required items such as the billing items of specific commodities in the submitted order by calling the local commodity data verification Rest interface for the newly generated order, there is also a situation where historical orders need to be associated during the order generation process. This embodiment will give a specific introduction to this.
[0070] See also Figure 4 As shown, the embodiment of the present application discloses a specific order approval method based on a distributed cloud scenario, which is applied to each distributed node in a distributed cloud scenario, including:
[0071] Step S21: If there are resources in the target order that have not been successfully implemented, historical orders corresponding to the resources in the target order that have not been successfully implemented are called through a first preset calling interface.
[0072] In this embodiment, in the case where historical orders need to be associated during the order generation process, such orders do not need to be submitted to the centralized system for approval again because they are associated with historical orders that can be associated. Such historical orders are orders that resources have not successfully created, but the historical orders have been archived, and resources can continue to be created at the business level. In this way, after associating such historical orders, the current order does not need to be approved again. Such orders need to verify the data because they reuse the approval results of historical orders.
[0073] Step S22: Determine the remaining resource balance quantity and specific specification message information from the historical order, and determine whether the resource balance quantity is consistent with the resource quantity that has not been successfully implemented in the target order.
[0074] Step S23: If the quantity is consistent, then call the preset tool class method to determine whether the specific specification message information is consistent with the core parameter information of the resource that has not been successfully implemented in the target order.
[0075] In this embodiment, Figure 5 As shown, the first step is to compare the quantity with the historical orders. The second step is to compare the specification configuration with the historical orders. Finally, the special attributes such as billing items are compared with the configuration information of the product center. This not only ensures the accuracy of the submitted data, but also reduces the workload of repeated approvals.
[0076] Step S24: If the specific specification message information is consistent with the core parameter information, the target order is uploaded to a preset cloud centralized node for approval.
[0077] For the specific process of the above step S24, reference may be made to the corresponding contents disclosed in the above embodiment, which will not be described again here.
[0078] It can be seen that in this embodiment, for the compatibility processing of some scenarios, such as scenarios where there are historical resources that have not been successfully implemented, these resources can be directly associated when submitting an order again, and there is no need to submit it for approval again. First, compare the quantity with the historical order. Then compare the specification configuration with the historical order. Finally, compare special attributes such as billing items with the configuration information of the product center. This ensures the accuracy of the submitted data on the one hand, and reduces the workload of repeated approvals on the other.
[0079] like Figure 6As shown, the present application discloses a network architecture diagram based on a distributed cloud scenario. For this edge cloud 1 to N architecture mode, the cloud-based centralized management system mainly undertakes the basic information maintenance, approval and other functions. Each functional module uses the Springboot project to provide services, while being compatible with high-throughput business scenarios. For this scenario, especially the scenario of information delivery, the decoupling of messages is related to the complexity of the call relationship. There is an essential difference between N to 1 message transmission and 1 to N message transmission. In the 1 to N scenario, the most effective way to decouple systems and reduce call complexity is to introduce message queues. In this application, kafka is used to achieve message transmission. For the management system deployed locally in the distributed cloud center, the main function is to generate orders and transmit them to the cloud for approval. Generally speaking, the corresponding business functions are realized by deploying one or more spingboot projects. Configuration information that needs to be persistently stored through data storage such as mysql. For scenarios where some functions need to access data through cache, it is implemented by redis. In this solution, there is a scenario of data verification. The verification of data is to reduce the interaction between the business system and the database, and obtain data by reading the cache. Thereby reducing the access pressure of the system. The delivery of basic configuration data can be achieved by actively pulling or listening to the corresponding topic in the Kafka message queue.
[0080] refer to Figure 7 The embodiment of the present application also discloses an order approval device based on a distributed cloud scenario, which is applied to each distributed node in the distributed cloud scenario, including:
[0081] The resource determination module 11 is used to generate a corresponding target order based on order-related parameter information, and determine whether there are resources in the target order that have not been successfully implemented;
[0082] An order information determination module 12 is used to determine whether the commodity specification information in the target order is compliant if there are no unsuccessfully implemented resources in the target order;
[0083] The order approval module 13 is used to upload the target order to a preset cloud centralized node for approval if the commodity specification information is compliant;
[0084] The order implementation module 14 is used to obtain the approval result issued by the preset cloud-based centralized node, and based on the approval result and the preset underlying platform, call the resources corresponding to the target order to perform order implementation operations, and then send an order completion notification to the preset cloud-based centralized node.
[0085] It can be seen that in this embodiment, the original approval and supervision link is adjusted from post-processing to pre-approval; the order information that needs to apply for resources is first uploaded to the centralized processing center for approval, and after the approval is completed, it is sent to the distributed nodes for implementation. In this way, through distributed node application, centralized node approval, distributed node implementation, and the final result is uploaded to the centralized node, the operation forms a closed loop to achieve the purpose of data consistency.
[0086] In some specific embodiments, the order information determination module 12 may specifically include:
[0087] A resource confirmation unit, used to confirm if there are no unsuccessfully implemented resources in the target order;
[0088] A parameter extraction unit, used to extract information related to commodity specifications based on the order-related parameter information, and to extract core comparison parameters from a local database;
[0089] A parameter verification unit is used to perform a cyclic verification of the core parameters of the product based on the product specification related information and the core comparison parameters to determine whether the product specification information in the target order is compliant.
[0090] In some specific embodiments, the order approval device based on the distributed cloud scenario may further include:
[0091] A resource confirmation module, used if there are resources in the target order that have not been successfully implemented;
[0092] A historical order calling module, used to call the historical orders corresponding to the resources that have not been successfully implemented in the target order through a first preset calling interface;
[0093] A resource quantity confirmation module, used to determine the remaining resource balance quantity and specific specification message information from the historical order, and determine whether the resource balance quantity is consistent with the resource quantity that has not been successfully implemented in the target order;
[0094] A parameter information confirmation module is used to call a preset tool class method to determine whether the specific specification message information is consistent with the core parameter information of the resource that has not been successfully implemented in the target order if the quantity is consistent;
[0095] The step execution module is used to execute the step of uploading the target order to a preset cloud centralized node for approval if the specific specification message information is consistent with the core parameter information.
[0096] In some specific embodiments, the order approval module 13 may specifically include:
[0097] A first order approval unit is used to upload the target order directly to a preset cloud centralized node for approval through a second preset calling interface;
[0098] The second order approval unit is used to encrypt the target order by symmetric encryption to obtain an encrypted order, and upload the encrypted order to a preset cloud centralized node for approval.
[0099] In some specific embodiments, the order implementation module 14 may specifically include:
[0100] A first data acquisition unit is used to monitor the message queue of the preset cloud centralized node and obtain information about changes in the message queue to obtain the approval result issued by the preset cloud centralized node;
[0101] The second data acquisition unit is used to periodically pull the approval result from the preset cloud centralized node through a third preset calling interface.
[0102] In some specific embodiments, the order approval device based on the distributed cloud scenario may further include:
[0103] An implementation result judgment module is used to judge whether the resource corresponding to the target order has failed in the implementation operation;
[0104] An instruction acquisition module, used for acquiring an operation instruction issued in the case where an operation fails to be implemented for a resource corresponding to the target order;
[0105] A notification information sending module, configured to send a notification message of failure to implement the operation to the preset cloud centralized node if the operation instruction is the first operation instruction;
[0106] The information storage module is used to determine the target order as a historical order if the operation instruction is the second operation instruction, and store the remaining resource balance quantity and specific specification message information in the target order locally.
[0107] In some specific embodiments, the order approval device based on the distributed cloud scenario may further include:
[0108] A modification instruction acquisition module, used to acquire a resource status modification instruction, and determine a modification dimension in the target order in a preset conversion granularity selection interface based on the resource status modification instruction;
[0109] An associated instruction acquisition module, used to determine the resources to be modified in the first state in the target order based on the modification dimension, and acquire the associated instructions of the historical order;
[0110] An order information confirmation module, used for obtaining the historical order information corresponding to the resource to be modified in the first state based on the historical order association instruction;
[0111] An order information updating module is used to determine the second-state resources to be modified in the historical order information based on the first-state resources to be modified, and to update the resource states of the first-state resources to be modified and the second-state resources to be modified.
[0112] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.
[0113] Figure 8 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the order approval method based on the distributed cloud scenario disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0114] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0115] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0116] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the order approval method based on the distributed cloud scenario executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0117] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the above-disclosed order approval method based on a distributed cloud scenario is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the above-mentioned embodiments, and will not be repeated here.
[0118] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0119] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0121] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0122] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An order approval method based on distributed cloud scenarios, It is characterized in that Applied to distributed nodes in distributed cloud scenarios, including: Generate a corresponding target order based on order-related parameter information, and determine whether there are resources in the target order that have not been successfully implemented; If there are no unsuccessfully implemented resources in the target order, determining whether the commodity specification information in the target order is compliant; If the product specification information is compliant, the target order is uploaded to a preset cloud centralized node for approval; The approval result issued by the preset cloud-based centralized node is obtained, and based on the approval result and the preset underlying platform, the resources corresponding to the target order are called to perform order implementation operations, and then an order completion notification is sent to the preset cloud-based centralized node.
2. According to the distributed cloud scenario-based order approval method of claim 1, It is characterized in that If there is no unsuccessfully implemented resource in the target order, determining whether the commodity specification information in the target order is compliant includes: If there are no resources in the target order that have not been successfully implemented; Extracting product specification related information based on the order related parameter information, and extracting core comparison parameters from a local database; A product core parameter cyclic check is performed based on the product specification related information and the core comparison parameters to determine whether the product specification information in the target order is compliant.
3. According to the distributed cloud scenario-based order approval method of claim 1, It is characterized in that After generating a corresponding target order based on the order-related parameter information and determining whether there are resources in the target order that have not been successfully implemented, the method further includes: If there are resources in the target order that have not been successfully implemented; Calling the historical orders corresponding to the resources that have not been successfully implemented in the target order through the first preset calling interface; Determine the remaining resource balance quantity and specific specification message information from the historical order, and determine whether the resource balance quantity is consistent with the resource quantity that has not been successfully implemented in the target order; If the quantity is consistent, then calling the preset tool class method to determine whether the specific specification message information is consistent with the core parameter information of the resource that has not been successfully implemented in the target order; If the specific specification message information is consistent with the core parameter information, the step of uploading the target order to a preset cloud centralized node for approval is performed.
4. According to the distributed cloud scenario-based order approval method of claim 1, It is characterized in that The step of uploading the target order to a preset cloud centralized node for approval includes: Uploading the target order directly to a preset cloud centralized node for approval through a second preset calling interface; Alternatively, the target order is encrypted by symmetric encryption to obtain an encrypted order, and the encrypted order is uploaded to a preset cloud centralized node for approval.
5. According to the distributed cloud scenario-based order approval method of claim 1, It is characterized in that The obtaining of the approval result issued by the preset cloud centralized node includes: Monitor the message queue of the preset cloud centralized node, and obtain information about changes in the message queue to obtain the approval result issued by the preset cloud centralized node; Or, the approval result is periodically pulled from the preset cloud centralized node through a third preset calling interface.
6. The order approval method based on the distributed cloud scenario according to claim 1, It is characterized in that After the resource corresponding to the target order is called based on the approval result and the preset underlying platform to perform the order implementation operation, the method further includes: Determine whether there is a failure in implementing the operation of the resources corresponding to the target order; If the resource corresponding to the target order has an implementation operation failure, obtaining an operation instruction issued in response to the implementation operation failure; If the operation instruction is the first operation instruction, sending a notification message of operation failure to the preset cloud centralized node; If the operation instruction is the second operation instruction, the target order is determined as a historical order, and the remaining resource balance quantity and specific specification message information in the target order are stored locally.
7. The order approval method based on the distributed cloud scenario according to claim 1, It is characterized in that After the resource corresponding to the target order is called based on the approval result and the preset underlying platform to perform the order implementation operation, the method further includes: Obtaining a resource status modification instruction, and determining a modification dimension in the target order in a preset conversion granularity selection interface based on the resource status modification instruction; Determine the resources to be modified in the first state in the target order based on the modification dimension, and obtain historical order association instructions; Acquire historical order information corresponding to the resource to be modified in the first state based on the historical order association instruction; The resources in the second state to be modified in the historical order information are determined based on the resources in the first state to be modified, and the resource states of the resources in the first state to be modified and the resources in the second state to be modified are updated.
8. An order approval device based on a distributed cloud scenario, It is characterized in that Applied to distributed nodes in distributed cloud scenarios, including: A resource judgment module is used to generate a corresponding target order based on order-related parameter information, and to judge whether there are any resources in the target order that have not been successfully implemented; An order information judgment module, configured to judge whether the commodity specification information in the target order is compliant if there are no unsuccessfully implemented resources in the target order; An order approval module is used to upload the target order to a preset cloud centralized node for approval if the commodity specification information is compliant; The order implementation module is used to obtain the approval result issued by the preset cloud-based centralized node, and based on the approval result and the preset underlying platform, call the resources corresponding to the target order to perform order implementation operations, and then send an order completion notification to the preset cloud-based centralized node.
9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the order approval method based on a distributed cloud scenario as described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the order approval method based on a distributed cloud scenario as described in any one of claims 1 to 7.
Citation Information
Cited By
Order processing method and device suitable for cloud platform resource opening, equipment and medium
CN119850306A
