CN113240499A - Order processing method and device based on system switching - Google Patents
Order processing method and device based on system switching Download PDFInfo
- Publication number
- CN113240499A CN113240499A CN202110636912.8A CN202110636912A CN113240499A CN 113240499 A CN113240499 A CN 113240499A CN 202110636912 A CN202110636912 A CN 202110636912A CN 113240499 A CN113240499 A CN 113240499A
- Authority
- CN
- China
- Prior art keywords
- order
- processing
- transaction
- target
- switching
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Hardware Redundancy (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides an order processing method and device based on system switching. The order processing method based on system switching comprises the following steps: configuring a preset order number, configuring a processing identification to the preset order number, receiving a transaction order, and judging whether a target order number in the transaction order and an identification of an original system are respectively matched with the preset order number and the corresponding processing identification; if so, processing the transaction order to obtain a processing result; if not, the transaction order is filtered, switching service is called, the original system is switched to the target system based on the switching service, and the transaction order is processed based on the target system to obtain a processing result. The order processing method based on system switching can be used in various system switching scenes or in the process of developing new functions of the existing operation system, and the universality is greatly improved.
Description
Technical Field
The invention relates to the technical field of computer software, in particular to an order processing method and device based on system switching.
Background
For the operation system of the e-commerce platform, if the operation system is old, the expansion and operation of new services are difficult to support, so that the expansion and operation of new services can be supported by developing a new operation system or adding a new function on the existing operation system. Accordingly, how to process the real-time order in the process of switching between the new operation system and the existing operation system or adding new functions to the existing operation system becomes the key point of the research in the field.
Currently, in the process of switching between a new operation system and an existing operation system or adding a new function to the existing operation system, the technology for processing a real-time order mainly includes: for small and medium-sized Internet e-commerce enterprises, real-time orders are processed by utilizing an ActiveMQ message system and/or a RabbitMQ message system in the process of system switching or adding new functions in the existing operation system; for large Internet e-commerce enterprises, real-time orders are processed by utilizing a RocktMQ message system and/or a Kafka message system in the process of system switching or adding new functions in the existing operation system. Specifically, when receiving an order, the corresponding message system drives the corresponding message system to produce based on the received real-time order request in a message driving mode; after the order is produced, the order is sent to the after-sale service order applied by the user through the sending instruction, and the whole process of the after-sale service is driven to be completed through the instruction.
The disadvantages or shortcomings of the above-mentioned techniques include: the technology is used for switching between a new operation system and an existing operation system or processing a real-time order in the process of developing a new function in the existing operation system, and the problem of poor universality exists.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide an order processing method and apparatus based on system switching.
The invention provides an order processing method based on system switching, which comprises the following steps: configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order;
judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark;
if so, processing the transaction order to obtain a processing result;
if not, filtering the transaction order, calling a switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
According to the order processing method based on system switching provided by the invention, after receiving the transaction order, the method further comprises the following steps:
and acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number to a database for corresponding storage.
According to the order processing method based on system switching provided by the invention, after the target system processes the transaction order and obtains a processing result, the method further comprises the following steps:
judging whether the transaction order is abnormal and/or the processing result is not generated in the process of processing the transaction order;
if not, confirming that the transaction order processing is finished;
if so, calling a system identification mark of the target system, searching the transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
According to the order processing method based on system switching provided by the invention, the judging whether the transaction order is abnormal or not in the process of processing the transaction order comprises the following steps:
determining a functional component for processing the trade order;
acquiring a plurality of target nodes of the functional component, and checking input parameters and output parameters of the target nodes to obtain a checking result;
and verifying whether the verification result is matched with a preset verification result.
The invention also provides an order processing device based on system switching, which comprises:
the configuration module is used for configuring a preset order number, configuring a processing identification to the preset order number and receiving a transaction order;
the judging module is used for judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark;
the processing module is used for processing the transaction order to obtain a processing result if the transaction order is in the positive state;
and the switching module is used for filtering the transaction order and calling switching service if the transaction order is not processed, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
According to the order processing apparatus based on system switching provided by the present invention, the configuration module is further configured to:
and acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number to a database for corresponding storage.
According to the order processing apparatus based on system switching provided by the present invention, the switching module is further configured to:
judging whether the transaction order is abnormal and/or the processing result is not generated in the process of processing the transaction order;
if not, confirming that the transaction order processing is finished;
if so, calling a system identification mark of the target system, searching the transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
According to the order processing apparatus based on system switching provided by the present invention, the switching module is further configured to:
determining a functional component for processing the trade order;
acquiring a plurality of target nodes of the functional component, and checking input parameters and output parameters of the target nodes to obtain a checking result;
and verifying whether the verification result is matched with a preset verification result.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the order processing method based on system switching when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the system switching based order processing method as described in any of the above.
The invention provides an order processing method and device based on system switching, which comprises the steps of configuring a preset order number, configuring a processing identification to the preset order number, receiving a transaction order, and judging whether a target order number in the transaction order and an identification of an original system are respectively matched with the preset order number and the corresponding processing identification; if so, processing the transaction order to obtain a processing result; if not, filtering the transaction order, switching to a target system, and processing the received transaction order by using the target system to obtain a processing result; the order processing method can be used in a plurality of system switching scenes or in the process of developing new functions of the existing operation system, and the universality is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an order processing method based on system switching according to an embodiment of the present invention;
fig. 2 is a detailed flowchart of an order processing method based on system switching according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an order processing apparatus based on system switching according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The figures are purely diagrammatic and not drawn to scale. As used herein, the term "preferred," and similar terms, are used as table approximations and not as table degrees, and are intended to account for inherent deviations in measured or calculated values that will be recognized by those of ordinary skill in the art. It should be noted that in the present description, the expressions "first", "second", "third", etc. are used only to distinguish one feature from another, and do not represent any limitation on the features, and do not particularly represent any order of precedence.
It will be further understood that terms such as "comprising," "including," and/or "containing," when used in this specification, are open-ended and not closed-ended, and specify the presence of stated features, elements, and/or components, but do not preclude the presence or addition of one or more other features, elements, components, and/or groups thereof. Furthermore, when describing embodiments of the present application, the use of "may" mean "one or more embodiments of the present application. Also, the term "exemplary" is intended to refer to an example or illustration.
Unless otherwise defined, all terms (including engineering and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In order to solve the problems in the prior art, embodiments of the present invention provide an order processing method and apparatus based on system switching.
Fig. 1 is a flowchart illustrating an order processing method based on system switching according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order.
Specifically, configuring a preset order number and configuring a processing identification to the preset order number means configuring the preset order number and configuring a corresponding processing identification for the preset order number. Receiving a trade order means receiving a trade order formed and transmitted at a user terminal. The processing identification mark refers to an identification mark corresponding to a business system for processing a corresponding transaction order.
Correspondingly, a preset order number is configured, and a processing identification mark corresponding to the preset order number is configured to belong to a part of the transaction order processing rule. Wherein, the trade order processing rule is preset and formed in the server.
Illustratively, if the preset order number is 1234567 and the correspondingly configured processing identifier is op.system.order.key, the real-time trade order is received, and when the order number in the real-time trade order is the same as the preset order number and is 1234567, the trade order is processed by the business system with the identifier of op.system.order.key.
Further, after receiving the trade order, performing steps comprising:
and step 1011, acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number to a database for corresponding storage.
Specifically, acquiring a transaction message corresponding to a transaction order, and sending the transaction message and a target order number to a database for corresponding storage means that the server acquires the transaction message corresponding to the transaction order, sends the acquired transaction message and the target order number included in the transaction order to the database, and correspondingly stores the target order number and the transaction message in the database.
The database for correspondingly storing the target order number and the transaction message may include various databases, and the present invention does not specifically limit the databases. Preferably, the database for correspondingly storing the target order number and the transaction message in the present invention refers to a data structure in a traffic playback system of the server.
Exemplarily, the sending of the transaction message and the target order number to the database for corresponding storage refers to sending the transaction message and the target order number to a data structure in a traffic playback system of the server, and utilizing the data structure in the traffic playback system of the server to correspondingly store the target order number and the transaction message; and a data table for correspondingly storing the target order number and the transaction message is shown in table 1.
TABLE 1
Wherein n is a positive integer.
Specifically, the step of judging whether the target order number and the identification mark of the original system in the transaction order are respectively matched with the preset order number and the corresponding processing identification mark thereof means that whether the target order number in the received transaction order is matched with the preset order number and whether the identification mark of the original system is matched with the processing identification mark corresponding to the preset order number are judged. The identification mark of the original system is a unique mark distributed to the original system in the process of developing the original system. The identification mark of the original system can comprise various forms, and the invention does not specifically limit the identification mark; preferably, old system order key is allocated as its identification in the present invention.
Illustratively, in the present invention, the selected preset order number is 1234567, and the identification assigned to the original system is old.
Correspondingly, judging whether the target order number in the received transaction order is matched with the preset order number and judging whether the identification mark of the original system is matched with the processing identification mark corresponding to the preset order number means that the target order number in the received transaction order is obtained, whether the target order number is matched with the preset order number 1234567 or not is judged, and whether the identification mark old.system.order.key of the original system is matched with the processing identification mark corresponding to the preset order number 1234567 or not is judged.
And 103, if so, processing the transaction order to obtain a processing result.
Specifically, if so, processing the transaction order to obtain a processing result, that is, if the target order number and the identification identifier of the original system in the transaction order are respectively matched with the preset order number and the corresponding processing identification identifier, processing the received transaction order by using the original system to obtain the transaction result.
And 104, if not, filtering the transaction order, calling switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
Specifically, if not, filtering the transaction order, calling a switching service, and switching the original system to the target system based on the switching service means that if the target order number in the transaction order is not matched with the preset order number, and/or the identification mark of the original system is not matched with the processing identification mark corresponding to the preset order number; and calling the switching service of the original system, and switching the original system to the target system through the switching service. In addition, the step of processing the trade order based on the target system to obtain the processing result means that the target system is used for producing the received trade order and obtaining a corresponding production result.
Correspondingly, the step of filtering the transaction order means that the original system filters the received transaction order after acquiring the result that the target order number in the transaction order is not matched with the preset order number and/or the identification mark of the target order number is not matched with the processing identification mark corresponding to the preset order number; in other words, the original system does not process the received trade order.
In addition, the switching service of the original system refers to a switching interface service configured for the original system in the process of developing the original system. The target system is a business system obtained by developing and upgrading based on the original system, or a business system obtained by adding at least one new function on the original system.
It should be noted that, switching the original system to the target system based on the switching service can effectively avoid data omission or loss caused by system switching.
Further, the step of processing the trade order based on the target system and after obtaining the processing result, further comprises:
step 1041, determining whether an exception occurs and/or a processing result is not generated in the process of processing the transaction order.
Specifically, determining whether an exception occurs and/or a processing result is not generated in the process of processing the trade order means determining whether an exception occurs in the process of processing the trade order by the target system and/or whether a processing result is not generated in the process of processing the trade order by the target system.
Correspondingly, the step of judging whether the transaction order is abnormal or not in the process of processing the transaction order comprises the following steps:
at step 10411, functional components for processing the trade order are determined.
Specifically, determining a functional component for processing a trade order refers to determining a functional component of a target system for processing a trade order.
Step 10412, acquiring a plurality of target nodes of the functional component, and verifying the input parameters and the output parameters of the plurality of target nodes to obtain a verification result.
Specifically, obtaining a plurality of target nodes of the functional component, and checking input parameters and output parameters of the plurality of target nodes, where obtaining a check result means obtaining all target nodes included in the functional component, and checking the input parameters and the output parameters corresponding to the obtained functional nodes, respectively, to obtain a check result. The input parameters and the output parameters of the target nodes may be checked in various ways, which is not specifically limited in the present invention.
Correspondingly, before checking the input parameters and the output parameters of the plurality of target nodes, the method further comprises the step of obtaining the input parameters and the output parameters of the plurality of target nodes through annotation parameters configured for each functional component in the process of developing the target system.
And step 10413, verifying whether the verification result matches the preset verification result.
Specifically, whether the verification result is matched with the preset verification result means whether the verification result generated by the verification is the same as the preset verification result.
Step 1042, if not, confirm that the transaction order processing is complete.
Specifically, if not, confirming that the transaction order processing is completed means that, if no exception occurs in the process of processing the transaction order by the target system and the processing of the transaction order by the target system has generated a processing result, confirming that the received transaction order is processed.
And 1043, if yes, calling the system identification of the target system, searching the transaction message in the database based on the system identification and the target order number, and sending the transaction message to the original system to process the transaction order.
Specifically, if the transaction order is processed by the target system, the system identification mark corresponding to the target system is called, the transaction message in the database is searched for based on the system identification mark and the target order number, and the transaction message is sent to the original system.
The system identification mark corresponding to the target system is a unique mark distributed to the target system in the process of developing the target system. The system identification mark corresponding to the target system can include various forms, and the invention does not specifically limit the system identification mark; preferably, the target system is assigned new.
In summary, the order processing method based on system switching described in the above embodiment can be used in a variety of system switching scenarios or in the process of developing new functions in the existing operation system, and the generality is greatly improved. In addition, the problem of poor user experience caused by the fact that the original system is provided with the closing announcement in the process of replacing the original system by the target system which comprises at least one new function compared with the original system is also solved. Meanwhile, the service capability of the user is improved.
Based on the above embodiment, fig. 2 is a detailed flowchart of an order processing method based on system switching according to another embodiment of the present invention. As shown in fig. 2, the method includes:
step 201, configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order.
Specifically, configuring a preset order number, configuring a processing identification to the preset order number, receiving a transaction order means configuring the preset order number, configuring a processing identification corresponding to the preset order number for the preset order number, and receiving the transaction order formed and sent by the client.
Illustratively, if the preset order number is 7654321 and the processing identifier correspondingly configured for the preset order number is xy.
After the execution of step 201 is finished, step 202 and step 203 are executed.
Specifically, the step of judging whether the target order number and the identification mark of the original system in the transaction order are respectively matched with the preset order number and the corresponding processing identification mark thereof means that whether the target order number in the received transaction order is matched with the preset order number and whether the identification mark of the original system is matched with the processing identification mark corresponding to the preset order number are judged.
For example, if the preset order number is 1357973 and the processing identifier disposed for the preset order number is xxx.
If yes, go to step 204, otherwise go to step 205.
Specifically, acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number of the transaction order to the database for corresponding storage means that the transaction message of the transaction order is acquired, and all data of the transaction message and the target order number of the transaction order are sent to the database for corresponding storage.
Illustratively, all data of the transaction message and the target order number of the transaction order are sent to a data structure in a traffic playback system of the server, and all data of the transaction message and the target order number of the transaction order are stored in a one-to-one correspondence mode by using the data structure in the traffic playback system.
Specifically, processing the transaction order to obtain a processing result means that the original system is used for processing the received transaction order to obtain the transaction result under the condition that the target order number and the identification mark of the original system in the transaction order are respectively matched with the preset order number and the corresponding processing identification mark.
Illustratively, if the preset order number is 1461466 and the processing identifier correspondingly configured for the preset order number is yy.
Specifically, the transaction order is filtered, the switching service is called, the original system is switched to the target system based on the switching service, the transaction order is processed based on the target system, and the processing result is obtained under the condition that the target order number in the transaction order is not matched with the preset order number and/or the identification mark of the original system is not matched with the processing identification mark corresponding to the preset order number; and calling the switching service of the original system, switching the original system to the target system through the switching service, and producing the received transaction order by using the target system to obtain a corresponding production result.
Illustratively, if the preset order number is 2342346, and the process identifier configured for the preset order number is zz. In the event that the target order number in the confirmed transaction order is different from 2342346, and/or the original system identification is different from zz. And calling the switching service of the original system, switching the original system to the target system through the switching service, and producing the received transaction order by using the target system to obtain a corresponding production result.
After the execution of step 205 is finished, step 206 is executed.
Specifically, the step of determining whether an exception occurs in the process of processing the trade order includes:
step 2061, determining a functional component for processing the trade order;
step 2062, acquiring a plurality of target nodes of the functional assembly, and checking input parameters and output parameters of the plurality of target nodes to obtain a checking result;
step 2063, verifying whether the verification result is matched with the preset verification result.
If yes, go to step 208, otherwise go to step 207.
Step 207 confirms that the transaction order processing is complete.
And step 208, calling the system identification mark of the target system, searching the transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
Specifically, calling a system identification of a target system, searching a transaction message in a database based on the system identification and a target order number, sending the transaction message to an original system, processing a transaction order, namely, calling a unique system identification distributed for the target system, using the system identification and the target order number as indexes, searching the transaction message in the database, sending the searched transaction message to the original system, and processing the transaction order by using the original system.
Based on the above embodiments, fig. 3 is a schematic structural diagram of an order processing apparatus based on system switching according to still another embodiment of the present invention. As shown in fig. 3, the order processing apparatus based on system switching includes: a configuration module 310, a determination module 320, a processing module 330, and a switching module 340.
The configuration module 310 is configured to configure a preset order number, configure a processing identifier to the preset order number, and receive a transaction order.
The configuration module 310 is further configured to obtain a transaction message corresponding to the transaction order, and send the transaction message and the target order number to the database for corresponding storage.
The determining module 320 is configured to determine whether the target order number and the identification identifier of the original system in the transaction order are respectively matched with the preset order number and the corresponding processing identification identifier.
And the processing module 330 is configured to, if yes, process the transaction order to obtain a processing result.
And the switching module 340 is configured to filter the transaction order if the transaction order is not processed, call a switching service, switch the original system to the target system based on the switching service, and process the transaction order based on the target system to obtain a processing result.
The switching module 340 is configured to call a switching service and switch the original system to the target system based on the switching service, so that data omission or loss caused by system switching can be effectively avoided.
The switching module 340 is further configured to determine whether an exception occurs and/or a processing result is not generated in the process of processing the transaction order; if not, the transaction order processing is confirmed to be completed; if so, calling a system identification mark of the target system, searching a transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
A switching module 340 further for determining functional components for processing the trade order; acquiring a plurality of target nodes of the functional component, and checking input parameters and output parameters of the target nodes to obtain a checking result; and verifying whether the verification result is matched with a preset verification result.
In summary, the order processing apparatus based on system switching described in the above embodiments can be used in a variety of system switching scenarios or in the process of developing new functions in the existing operating system, and the generality is greatly improved. In addition, the problem of poor user experience caused by the fact that the original system is provided with the closing announcement in the process of replacing the original system by the target system which comprises at least one new function compared with the original system is also solved. Meanwhile, the service capability of the user is improved.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 4, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440; the processor 410, the communication interface 420, and the memory 430 are configured to communicate with each other via a communication bus 440. Processor 410 may invoke logic instructions in memory 430 to perform the provided system switch-based order processing method, comprising: configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order; judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark; if so, processing the transaction order to obtain a processing result; if not, filtering the transaction order, calling a switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform the order processing method based on system switching provided by the above methods, the method comprising: configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order; judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark; if so, processing the transaction order to obtain a processing result; if not, filtering the transaction order, calling a switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the system switching-based order processing method provided in the above steps, the method comprising: configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order; judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark; if so, processing the transaction order to obtain a processing result; if not, filtering the transaction order, calling a switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An order processing method based on system switching is characterized by comprising the following steps:
configuring a preset order number, configuring a processing identification to the preset order number, and receiving a transaction order;
judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark;
if yes, processing the transaction order based on the original system to obtain a processing result;
if not, filtering the transaction order, calling a switching service, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
2. The system switching based order processing method according to claim 1, further comprising, after receiving the trade order:
and acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number to a database for corresponding storage.
3. The system switching based order processing method according to claim 1, wherein the processing of the trade order based on the target system to obtain a processing result further comprises:
judging whether the transaction order is abnormal and/or the processing result is not generated in the process of processing the transaction order;
if not, confirming that the transaction order processing is finished;
if so, calling a system identification mark of the target system, searching the transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
4. The system switching-based order processing method according to claim 3, wherein the determining whether an abnormality occurs in the process of processing the trade order comprises:
determining a functional component for processing the trade order;
acquiring a plurality of target nodes of the functional component, and checking input parameters and output parameters of the target nodes to obtain a checking result;
and verifying whether the verification result is matched with a preset verification result.
5. An order processing apparatus based on system switching, comprising:
the configuration module is used for configuring a preset order number, configuring a processing identification to the preset order number and receiving a transaction order;
the judging module is used for judging whether a target order number in the transaction order and an identification mark of an original system are respectively matched with the preset order number and the corresponding processing identification mark;
the processing module is used for processing the transaction order to obtain a processing result if the transaction order is in the positive state;
and the switching module is used for filtering the transaction order and calling switching service if the transaction order is not processed, switching the original system to a target system based on the switching service, and processing the transaction order based on the target system to obtain a processing result.
6. The system-switching-based order processing device of claim 5, wherein the configuration module is further configured to:
and acquiring a transaction message corresponding to the transaction order, and sending the transaction message and the target order number to a database for corresponding storage.
7. The system switching based order processing device of claim 5, wherein the switching module is further configured to:
judging whether the transaction order is abnormal and/or the processing result is not generated in the process of processing the transaction order;
if not, confirming that the transaction order processing is finished;
if so, calling a system identification mark of the target system, searching the transaction message in the database based on the system identification mark and the target order number, and sending the transaction message to the original system to process the transaction order.
8. The system switching based order processing device of claim 7, wherein the switching module is further configured to:
determining a functional component for processing the trade order;
acquiring a plurality of target nodes of the functional component, and checking input parameters and output parameters of the target nodes to obtain a checking result;
and verifying whether the verification result is matched with a preset verification result.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor when executing the program implements the steps of the system switching based order processing method according to any of claims 1-4.
10. A non-transitory computer readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the steps of the system switching based order processing method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110636912.8A CN113240499B (en) | 2021-06-08 | 2021-06-08 | Order processing method and device based on system switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110636912.8A CN113240499B (en) | 2021-06-08 | 2021-06-08 | Order processing method and device based on system switching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113240499A true CN113240499A (en) | 2021-08-10 |
CN113240499B CN113240499B (en) | 2024-07-19 |
Family
ID=77137121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110636912.8A Active CN113240499B (en) | 2021-06-08 | 2021-06-08 | Order processing method and device based on system switching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113240499B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113722297A (en) * | 2021-09-14 | 2021-11-30 | 首约科技(北京)有限公司 | Order system reconstruction smooth migration method |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020156716A1 (en) * | 2001-04-24 | 2002-10-24 | Asif Adatia | Automated securities trade execution system and method |
JP2004326391A (en) * | 2003-04-24 | 2004-11-18 | Konica Minolta Photo Imaging Inc | Order-receiving/ordering system, and order-receiving/ordering method |
JP2007241771A (en) * | 2006-03-09 | 2007-09-20 | Fitech Lab Inc | Transaction system |
JP2013089071A (en) * | 2011-10-19 | 2013-05-13 | Alit Co Ltd | Commercial transaction promotion system |
US20130159163A1 (en) * | 2010-08-20 | 2013-06-20 | Toshiba Solutions Corporation | Securities trading system and device |
CN105976164A (en) * | 2016-05-05 | 2016-09-28 | 北京思特奇信息技术股份有限公司 | Business data emergency switching system and processing method |
CN106097058A (en) * | 2016-06-07 | 2016-11-09 | 杭州笛佛软件有限公司 | E-commerce platform heterogeneous data processing method and system |
CN109491765A (en) * | 2018-10-09 | 2019-03-19 | 阿里巴巴集团控股有限公司 | To the processing method and processing device of cross-domain service request |
US20190171711A1 (en) * | 2017-03-29 | 2019-06-06 | Valyant Al, Inc. | Artificially intelligent order processing system |
CN109934694A (en) * | 2019-02-25 | 2019-06-25 | 阿里巴巴集团控股有限公司 | A kind of information processing method, system, device and electronic equipment |
US20190197603A1 (en) * | 2017-12-22 | 2019-06-27 | Wei-Chun Ku | Order integration system and integration method thereof |
CN110458544A (en) * | 2019-08-12 | 2019-11-15 | 北京莱利时空科技有限公司 | A kind of method of payment and payment services system across more cash register system |
CN110619555A (en) * | 2019-08-15 | 2019-12-27 | 中国平安财产保险股份有限公司 | Unified management method and device for order information, terminal equipment and medium |
CN111061785A (en) * | 2019-10-23 | 2020-04-24 | 深圳智慧园区信息技术有限公司 | Method and system for classified storage of orders in management platform |
CN111951091A (en) * | 2020-08-13 | 2020-11-17 | 金蝶软件(中国)有限公司 | Transaction flow reconciliation method, system and related equipment |
CN112905335A (en) * | 2021-02-02 | 2021-06-04 | 北京思特奇信息技术股份有限公司 | Switching method for calling multiple sets of system same services and business processing system |
-
2021
- 2021-06-08 CN CN202110636912.8A patent/CN113240499B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020156716A1 (en) * | 2001-04-24 | 2002-10-24 | Asif Adatia | Automated securities trade execution system and method |
JP2004326391A (en) * | 2003-04-24 | 2004-11-18 | Konica Minolta Photo Imaging Inc | Order-receiving/ordering system, and order-receiving/ordering method |
JP2007241771A (en) * | 2006-03-09 | 2007-09-20 | Fitech Lab Inc | Transaction system |
US20130159163A1 (en) * | 2010-08-20 | 2013-06-20 | Toshiba Solutions Corporation | Securities trading system and device |
JP2013089071A (en) * | 2011-10-19 | 2013-05-13 | Alit Co Ltd | Commercial transaction promotion system |
CN105976164A (en) * | 2016-05-05 | 2016-09-28 | 北京思特奇信息技术股份有限公司 | Business data emergency switching system and processing method |
CN106097058A (en) * | 2016-06-07 | 2016-11-09 | 杭州笛佛软件有限公司 | E-commerce platform heterogeneous data processing method and system |
US20190171711A1 (en) * | 2017-03-29 | 2019-06-06 | Valyant Al, Inc. | Artificially intelligent order processing system |
US20190197603A1 (en) * | 2017-12-22 | 2019-06-27 | Wei-Chun Ku | Order integration system and integration method thereof |
CN109491765A (en) * | 2018-10-09 | 2019-03-19 | 阿里巴巴集团控股有限公司 | To the processing method and processing device of cross-domain service request |
CN109934694A (en) * | 2019-02-25 | 2019-06-25 | 阿里巴巴集团控股有限公司 | A kind of information processing method, system, device and electronic equipment |
CN110458544A (en) * | 2019-08-12 | 2019-11-15 | 北京莱利时空科技有限公司 | A kind of method of payment and payment services system across more cash register system |
CN110619555A (en) * | 2019-08-15 | 2019-12-27 | 中国平安财产保险股份有限公司 | Unified management method and device for order information, terminal equipment and medium |
CN111061785A (en) * | 2019-10-23 | 2020-04-24 | 深圳智慧园区信息技术有限公司 | Method and system for classified storage of orders in management platform |
CN111951091A (en) * | 2020-08-13 | 2020-11-17 | 金蝶软件(中国)有限公司 | Transaction flow reconciliation method, system and related equipment |
CN112905335A (en) * | 2021-02-02 | 2021-06-04 | 北京思特奇信息技术股份有限公司 | Switching method for calling multiple sets of system same services and business processing system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113722297A (en) * | 2021-09-14 | 2021-11-30 | 首约科技(北京)有限公司 | Order system reconstruction smooth migration method |
Also Published As
Publication number | Publication date |
---|---|
CN113240499B (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111831682B (en) | Method, apparatus, device and computer readable medium for processing accumulation fund service | |
CN113268336B (en) | Service acquisition method, device, equipment and readable medium | |
CN111447069B (en) | Low-frequency access data processing method based on block chain | |
CN113342547B (en) | Remote service calling method and device, electronic equipment and readable storage medium | |
CN110909013A (en) | Service list generation method, device, equipment and computer readable storage medium | |
CN109978290A (en) | A kind of operation flow backspacing processing method of extensive makeup, flow engine and operation system | |
CN108230089A (en) | A kind of online order processing method, system and device | |
CN112766827A (en) | Automatic processing method and device for asset inventory data | |
CN110580556B (en) | Data processing method and system and processor | |
CN115242434A (en) | Application program interface API identification method and device | |
CN111367819B (en) | Code scanning and filtering method and device | |
CN111078506A (en) | Business data batch running task monitoring method and device | |
CN110737458A (en) | code updating method and related device | |
CN113240499A (en) | Order processing method and device based on system switching | |
CN113934526A (en) | Construction method and device of business process | |
CN113850683A (en) | Car insurance inquiry request processing method and device, computer equipment and storage medium | |
CN113297149A (en) | Method and device for monitoring data processing request | |
CN112214475A (en) | Method, system, storage medium and terminal for configuring multiple data sources | |
CN110784551A (en) | Data processing method, device, equipment and medium based on multiple tenants | |
CN106959903A (en) | Trap instruction Trap processing method and processing device | |
CN111324654A (en) | Interface calling method, system, computer device and computer readable storage medium | |
CN113076380B (en) | Data synchronization method, device, system, equipment and storage medium | |
CN114372078A (en) | Data security protection method and device | |
CN113220869A (en) | Text processing device and method for bank peripheral system | |
CN112256731A (en) | Data display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100176 601, 6th floor, building 2, No. 18, Kechuang 11th Street, Daxing Economic and Technological Development Zone, Beijing Applicant after: Jingdong Technology Information Technology Co.,Ltd. Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176 Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |