An e-commerce order management method based on cloud data analysis
Through the SaaS model and state machine module based on cloud data analysis, the performance problems of the e-commerce order management system during peak periods and the insufficient reverse order management functions are solved, and the configurable and efficient processing of order circulation is realized, improving the system Stability and user experience.
Patent Information
- Application Number
- CN202311128187.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-08-30
Smart Images

Figure CN116993459B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of e-commerce order processing, and in particular to an e-commerce order management method based on cloud data analysis. Background Art
[0002] Due to the rapid growth of e-commerce orders and the richer order flow links, the original order management system of e-commerce companies cannot adapt to such scenarios and gradually loses its value. The main problems are:
[0003] First, the existing order flow link is hard-coded and rooted in the system, making it almost immutable and unable to adapt to the current business scenarios where different orders require different flow links;
[0004] Second, due to the explosive growth in the number of orders, the original order management system could not support such a huge processing capacity, which frequently caused system freezes and delays, and reduced availability.
[0005] Third, the original system’s order reverse process had a single function, too many customized scenarios, and was difficult to use, resulting in poor scalability and maintainability;
[0006] Therefore, there is an urgent need for a universal reverse order management module to ensure the business function of returns and exchanges. Summary of the invention
[0007] The purpose of the present invention is to provide an e-commerce order management method and system based on cloud data analysis to solve the technical problems in the prior art such as freeze and delay of the order management system caused by the explosive growth of the number of orders, single business scenario, and reduced practicality.
[0008] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:
[0009] An e-commerce order management method based on cloud data analysis includes the following steps:
[0010] Step S1: Obtain order data using the cloud platform, convert the order data from the order receiving state to the delivery state through the SaaS model, and set the SaaS model to the forward order management state, the reverse order management state, and the order flow state;
[0011] Step S2: acquiring order data from the cloud platform through the forward order management state, managing the delivery operation through the order data time sequence, and when the order data is abnormal, the reverse order management state takes effect, and performing return and exchange operations on the order data;
[0012] Step S3: introduce a state machine module according to the validity of the forward order management status and the reverse order management status, and connect the entire e-commerce order status through the state machine module to schedule order flow information. The order flow information is connected to the cloud platform through the JFinal framework according to the order flow status to optimize the distribution logistics.
[0013] As a preferred solution of the present invention, in step S1, the SaaS model data end is mainly composed of a cloud platform database and an Opensearch search engine. The cloud platform database stores the order data in a Mysql database, and constructs a two-dimensional array through the Opensearch search engine as a data index structure for quickly searching the order data.
[0014] As a preferred solution of the present invention, the data index structure is used to monitor the order system call link through the Hawkeye server, and the Hawkeye server obtains the call chain relationship of the same order business request in all systems by collecting and analyzing the log points in different order systems, and associates the forward order management status and the reverse order management status through the call chain relationship;
[0015] The reverse order management state configures the reverse architecture into facade layer, service layer, core layer and dao layer through the order management system BMS. The facade layer uses the appearance model to define the high-level interface to connect multiple order platforms, and specifically connects multiple order platforms through the service layer. The core layer processes the order business, and encapsulates the order business through the object-oriented database interface of the dao layer, and connects to the cloud platform through the database interface to execute order operations.
[0016] As a preferred solution of the present invention, the core layer is used to create a reverse order of the order management system BMS, the SaveRefundOrder script is used to create return information, and the AuditRefundOrder script audits and processes the return information to call the order management system BMS link to create a return order. The core layer connects state nodes in series through xml configuration to form a complete order finite state machine, and the order finite state machine modifies order data and status by encapsulating order state nodes.
[0017] As a preferred solution of the present invention, the order finite state machine uses the MetaQ message middleware to drive the modification of the order status, controls the validity of the forward order management status and the reverse order management status by calling the process engine, and sends the necessary business information of the order to the MetaQ server in the form of a message. The MetaQ server returns the received order status information to the process engine, and the scheduling of the order business operations is executed by the process engine.
[0018] As a preferred solution of the present invention, the order finite state machine uses StateMachineNode to define the order state node, obtains all attributes of the state machine node, obtains order data through the order parameters passed in by the order management system BMS, and executes the business logic of the corresponding order.
[0019] As a preferred solution of the present invention, the order status node adopts a layered module to be responsible for specific order flow information. The order flow information interacts the service layer and the dao layer data through the JFinal framework to obtain the conversion, adaptation and data encapsulation of the order data.
[0020] As a preferred solution of the present invention, the order flow information obtains the latest order information according to the parameters transmitted by the order management system BMS, obtains the finite state machine corresponding to the order from the order finite state machine according to the order information, obtains the corresponding state node according to the obtained finite state machine model, and executes the state behavior.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] The present invention utilizes the SaaS model to realize the conversion between the forward order management state, the reverse order management state and the order flow state, thereby ensuring the configurability and high performance of the order flow, allowing users to manage orders to a certain extent, making order management simpler and reducing repeated operations, and ensuring the state conversion of orders from order acceptance to delivery according to the order flow state. At the same time, the JFinal framework is used to ensure that during a big promotion, the orders can be slowly digested by the system instead of overwhelming the entire system in an instant, thereby ensuring stability and improving system performance. The entire order management method improves the work efficiency of users, reduces repeated work, and improves the flow efficiency of orders, thereby realizing the configurability of the order flow link. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0024] Figure 1 A flow chart of an e-commerce order management method based on cloud data analysis provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] like Figure 1 As shown, the present invention provides an e-commerce order management method based on cloud data analysis, comprising the following steps:
[0027] Step S1: Obtain order data using the cloud platform, convert the order data from the order receiving state to the delivery state through the SaaS model, and set the SaaS model to the forward order management state, the reverse order management state, and the order flow state;
[0028] Step S2: acquiring order data from the cloud platform through the forward order management state, managing the delivery operation through the order data time sequence, and when the order data is abnormal, the reverse order management state takes effect, and performing return and exchange operations on the order data;
[0029] Step S3: introduce a state machine module according to the validity of the forward order management status and the reverse order management status, and connect the entire e-commerce order status through the state machine module to schedule order flow information. The order flow information is connected to the cloud platform through the JFinal framework according to the order flow status to optimize the distribution logistics.
[0030] In this embodiment, the SaaS model is used to realize the conversion between the forward order management state, the reverse order management state and the order flow state, which ensures the configurability and high performance of the order flow, allowing users to manage orders to a certain extent, making order management simpler and reducing repeated operations. The state conversion of the order from order acceptance to delivery is guaranteed according to the order flow state. At the same time, the JFinal framework is used to ensure that during big promotions, the order can be slowly digested by the system without overwhelming the entire system in an instant, ensuring stability and improving system performance. The state machine model is introduced to monitor the status of e-commerce orders at all times. When the order flows into the order management system through the multi-platform access system, it will automatically enter the order flow process. Merchants can intervene in the automatic order flow process by setting the rule system. For example, for orders with delivery time limits, merchants can set a default review pass so that the order will automatically pass the review when it enters the review node and enter the delivery process, ensuring time limits without manual review.
[0031] In step S1, the SaaS model data end is mainly composed of a cloud platform database and an Opensearch search engine. The cloud platform database stores the order data in a Mysql database, and a two-dimensional array is constructed through the Opensearch search engine as a data index structure for quickly searching the order data.
[0032] In this embodiment, the Opensearch search engine and the cloud platform database are used together to form an order data layer, which facilitates the acquisition of order data. At the same time, the Opensearch search engine is used to build a data index structure that can be quickly searched based on the detailed data of the order, so as to improve the speed of multi-dimensional search of the order.
[0033] The data index structure is used to monitor the order system call link through the Hawkeye server. The Hawkeye server obtains the call chain relationship of the same order business request in all systems by collecting and analyzing the log points in different order systems, and associates the forward order management status and the reverse order management status through the call chain relationship;
[0034] In this embodiment, the Eagle Eye server is introduced to monitor the order system to obtain the call chain relationship between all systems for the same business request, which is of great help in sorting out the entry of the order application request, the source of the service call and the dependency relationship between services. At the same time, through the in-depth analysis of these call links, it is of great help in analyzing the system call bottleneck and locating anomalies in a short time.
[0035] The reverse order management state configures the reverse architecture into facade layer, service layer, core layer and dao layer through the order management system BMS. The facade layer uses the appearance model to define the high-level interface to connect multiple order platforms, and specifically connects multiple order platforms through the service layer. The core layer processes the order business, and encapsulates the order business through the object-oriented database interface of the dao layer, and connects to the cloud platform through the database interface to execute order operations.
[0036] In this embodiment, the service layer is mainly an order status service layer, which is responsible for implementing specific business operations in each state of the order and completing a series of business actions in the flow process.
[0037] The core layer is used to create a reverse order for the order management system BMS, the SaveRefundOrder script is used to create return information, and the AuditRefundOrder script is used to review and process the return information to call the order management system BMS link to create a return order. The core layer connects state nodes in series through xml configuration to form a complete order finite state machine. The order finite state machine modifies order data and status by encapsulating order status nodes.
[0038] The order finite state machine uses the MetaQ message middleware to drive the modification of the order status, controls the validity of the forward order management status and the reverse order management status by calling the process engine, and sends the necessary business information of the order to the MetaQ server in the form of a message. The MetaQ server returns the received order status information to the process engine, and the scheduling of the order business operations is executed by the process engine.
[0039] In this embodiment, the process engine processes the order accordingly according to the order status. After execution, the process engine drives the order to be converted to the next state or repeatedly executes the current state according to the result of the order processing, thereby completing the scheduling and flow process of the order.
[0040] In this embodiment, the process engine controls the changes of the order status node. It sends the necessary business information of the order to the MetaQ server in the form of a message. The MetaQ server then returns the received order status information to the process engine, which schedules the business operations. After successful execution, the order will enter a new state, and this state information will be asynchronously driven by the process engine again. This cycle completes the entire life cycle of the order from order receipt to delivery.
[0041] In this embodiment, MetaQ message middleware is introduced as the core of state transition drive to connect the order flow subsystem, so that the order state transition link is clear and configurable. Different order systems can reduce the coupling between systems through the reliable asynchronous communication capability provided by the message middleware, so that the entire system has high scalability and high availability.
[0042] In this embodiment, the MetaQ message middleware is introduced to increase the utilization rate of multiple servers supporting the order management system, directly improving the performance of the entire system.
[0043] The order finite state machine uses StateMachineNode to define the order state node, obtains all attributes of the state machine node, obtains order data through the order parameters passed in by the order management system BMS, and executes the business logic of the corresponding order.
[0044] In this embodiment, the order finite state machine is based on the finite state machine design. Combined with the characteristics of Spring, the combination of the order finite state machine can be easily completed through XML writing, which is highly extensible and configurable.
[0045] In this embodiment, an order status node is defined using an order finite state machine, which is connected to the reverse order management status to obtain refund and return messages sent from other platforms and return and exchange operations initiated by users. When the order finite state machine monitors the return and exchange message or the merchant manually initiates a return and exchange operation in the system, the system will generate a corresponding return order based on the original order. After reviewing the return order, the warehouse will be notified to initiate a return operation and generate a corresponding return entry order to help complete the return operation.
[0046] The order status node adopts a layered module to be responsible for specific order flow information. The order flow information interacts the service layer and the dao layer data through the JFinal framework to obtain the conversion, adaptation and data encapsulation of the order data.
[0047] In this embodiment, the order flow information is one of the core systems of the order management system, which is responsible for managing the life cycle of the order in the system. When the order enters the order management system, the order flow module takes over to drive the change of its status and finally enters the delivery process. The order flow module is designed to rely on the message middleware and the scheduling center to complete the specific order scheduling process.
[0048] The order flow information obtains the latest order information according to the parameters transmitted by the order management system BMS, obtains the finite state machine corresponding to the order from the order finite state machine according to the order information, obtains the corresponding state node according to the obtained finite state machine model, and executes the state behavior.
[0049] In this embodiment, an order finite state machine is used to drive the order life cycle, the entire life cycle is asynchronous, and decoupling is achieved between different nodes so that different orders in different scenarios can have specific flow links without causing a lot of modifications to the system.
[0050] The present invention utilizes the SaaS model to realize the conversion between the forward order management state, the reverse order management state and the order flow state, thereby ensuring the configurability and high performance of the order flow, allowing users to manage orders to a certain extent, making order management simpler and reducing repeated operations, and ensuring the state conversion of orders from order acceptance to delivery according to the order flow state. At the same time, the JFinal framework is used to ensure that during a big promotion, the orders can be slowly digested by the system instead of overwhelming the entire system in an instant, thereby ensuring stability and improving system performance. The entire order management method improves the work efficiency of users, reduces repeated work, and improves the flow efficiency of orders, thereby realizing the configurability of the order flow link.
[0051] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. An e-commerce order management method based on cloud data analysis, characterized in that: The following steps are involved: Step S1: Obtain order data using the cloud platform, convert the order data from the order receiving state to the delivery state through the SaaS model, and set the SaaS model to the forward order management state, the reverse order management state, and the order flow state; Step S2: acquiring order data from the cloud platform through the forward order management state, managing the delivery operation through the order data time sequence, and when the order data is abnormal, the reverse order management state takes effect, and performing return and exchange operations on the order data; Step S3: introduce a state machine module according to the validity of the forward order management status and the reverse order management status, and connect the entire e-commerce order status through the state machine module to schedule order flow information. The order flow information is connected to the cloud platform through the JFinal framework according to the order flow status to optimize the distribution logistics; In step S1, the SaaS model data end is mainly composed of a cloud platform database and an Opensearch search engine. The cloud platform database stores the order data in a MySQL database, and a two-dimensional array is constructed through the Opensearch search engine as a data index structure for quickly searching the order data. The data index structure is used to monitor the order system call link through the Hawkeye server. The Hawkeye server obtains the call chain relationship of the same order business request in all systems by collecting and analyzing the log points in different order systems, and associates the forward order management status and the reverse order management status through the call chain relationship; The reverse order management state configures the reverse architecture into a facade layer, a service layer, a core layer and a dao layer through the order management system BMS. The facade layer uses an appearance model to define a high-level interface to connect multiple order platforms, and specifically connects multiple order platforms through the service layer. The core layer processes order services, and encapsulates the order services through the object-oriented database interface of the dao layer, and connects to the cloud platform through the database interface to execute order operations; The service layer is mainly the order status service layer, which is responsible for implementing specific business operations in each order status and completing a series of business actions in the flow process; The core layer is used to create a reverse order of the order management system BMS, and the SaveRefundOrder script is used to create return information. The AuditRefundOrder script is used to review and process the return information and call the order management system BMS link to create a return order. The core layer connects state nodes in series through XML configuration to form a complete order finite state machine. The order finite state machine modifies order data and status by encapsulating order state nodes. The order finite state machine uses the MetaQ message middleware to drive the modification of the order status, controls the validity of the forward order management status and the reverse order management status by calling the process engine, and sends the necessary business information of the order to the MetaQ server in the form of a message. The MetaQ server returns the received order status information to the process engine, and the scheduling of the order business operation is executed by the process engine; The order finite state machine uses StateMachineNode to define the order state node, obtains all attributes of the state machine node, obtains the order data through the order parameters passed in by the order management system BMS, and executes the business logic of the corresponding order; The order status node adopts a hierarchical module to be responsible for specific order flow information. The order flow information interacts the service layer and the dao layer data through the JFinal framework to obtain the conversion, adaptation and data encapsulation of the order data; The order flow information obtains the latest order information according to the parameters transmitted by the order management system BMS, obtains the finite state machine corresponding to the order from the order finite state machine according to the order information, obtains the corresponding state node according to the obtained finite state machine model, and executes the state behavior.
