Data processing method and device
By receiving and parsing terminal messages, extracting target parameters, querying inventory information, creating orders and making idempotent judgments, the problem of low data docking between e-commerce terminals is solved, and the accuracy of data processing and user experience is improved.
Patent Information
- Application Number
- CN202310594808.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-11-26
AI Technical Summary
The data docking efficiency between existing e-commerce terminals is low, resulting in lost or repeated orders when the network is unstable, affecting the user experience.
By receiving and parsing messages sent by the terminal, extracting target parameters, querying inventory information, creating orders, and making idempotent judgments to avoid duplicate orders, ensuring data validity and accuracy, and promoting out-of-stock processing.
It improves the efficiency of data docking between multiple e-commerce terminals, reduces the waste of invalid computing resources, enhances user experience, and promotes the smooth progress of online ordering process.
Smart Images

Figure CN119027203A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of e-commerce, and in particular to a data processing method and device. Background Art
[0002] At present, the application of e-commerce is very common, providing users with convenient and fast online sales services and online sales channels, which can greatly reduce the communication costs between user groups.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] While users are enjoying the convenient online business operation model, the problem of low data connection efficiency between multiple e-commerce terminals is common. This is attributed to the fact that the synchronous decoupling processing method adopted by the existing technology will amplify the negative impact of each data transfer node. Especially in the case of unstable network connection, the processing failure of a data transfer node may cause multiple online orders to be stuck, resulting in the loss of order data of multiple users, or multiple users placing duplicate orders, which in turn leads to a poor user experience. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a data processing method and device, which can solve the technical problem of low efficiency of data connection between multiple e-commerce terminals.
[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a data processing method is provided, including receiving a first message sent by a first terminal, parsing to obtain a first target parameter; extracting a first identifier from the first target parameter, and querying the inventory information corresponding to the first identifier in an inventory database; in response to determining that the inventory information is a target value, creating a corresponding order according to the first target parameter; in response to determining that the order is not a duplicate order, sending the order to a second terminal, so as to match the target object through the second terminal and perform outbound processing.
[0007] Optionally, extracting the first identifier from the first target parameter includes:
[0008] Performing standardization processing on the first target parameter based on a preset first rule to obtain a third message, and extracting a first identifier from the third message;
[0009] Among them, the standardization processing includes but is not limited to: format conversion processing of the first target parameter according to a preset target format, and querying the mapping value corresponding to each parameter value in the first target parameter according to a preset mapping table to update the first target parameter after format conversion processing.
[0010] Optionally, after obtaining the third message, the method further includes:
[0011] An idempotency judgment is performed on the third message in the message database, and in response to determining that the third message does not belong to a duplicate archive record, the third message is archived in the message database.
[0012] Optionally, creating a corresponding order according to the first target parameter includes:
[0013] Based on a preset second rule, it is determined whether each parameter value in the third message is valid, and in response to determining that no invalid parameter value exists in the third message, a corresponding order is created according to the third message.
[0014] Optionally, in response to determining that an invalid parameter value exists in the third message, the method includes:
[0015] The following steps are executed in a loop until no invalid parameter values exist in the third message: the first message is parsed again to update the first target parameter according to the corresponding parsing result; the updated first target parameter is standardized based on the preset first rule to update the third message according to the corresponding standardized processing result; based on the preset second rule, it is determined whether there are invalid parameter values in the updated third message to obtain a determination result.
[0016] Optionally include:
[0017] Monitor the progress of the second terminal's outbound processing of the target object, respond to the second terminal completing the outbound processing of the target object, obtain the corresponding logistics data, input the order and logistics data into a preset request template, obtain the shipping request instruction, and send the shipping request instruction to the corresponding interface of the first terminal.
[0018] Optionally include:
[0019] Receive a second message sent by the second terminal, parse it to obtain a second target parameter, and input it into a preset request template to obtain a corresponding request instruction; determine the category of the second message, and determine the first terminal interface corresponding to the category based on a preset lookup table to send the request instruction to the first terminal interface.
[0020] Optionally, before sending the request instruction to the first terminal interface, the method includes:
[0021] In response to determining that the second message belongs to the first category, the second target parameter is input into a preset inventory template to obtain corresponding inventory information; and the inventory information is added to an inventory database.
[0022] Optionally, before sending the request instruction to the first terminal interface, the method includes:
[0023] In response to determining that the second message belongs to the second category, a second identifier is extracted from a second target parameter, and information corresponding to the second identifier is queried in an inventory database; the inventory information is modified accordingly according to the second target parameter to update the inventory database.
[0024] In addition, the present invention also provides a data processing device, including a parsing module, which is used to receive a first message sent by a first terminal, parse it to obtain a first target parameter; extract a first identifier from the first target parameter, and query the inventory information corresponding to the first identifier in an inventory database; in response to determining that the inventory information is a target value, create a corresponding order according to the first target parameter; a bill of lading module, which is used to send the order to a second terminal in response to determining that the order is not a duplicate order, so as to match the target object through the second terminal and perform outbound processing.
[0025] An embodiment of the above invention has the following advantages or beneficial effects: the present invention receives a first message sent by a first terminal, parses and obtains a first target parameter, thereby realizing a process of acquiring order data created by an online shopping mall terminal, and automatically decoding and obtaining order information, thereby providing data support for sending a corresponding pick-up order to a warehouse terminal according to the order information in subsequent processing; and, the present invention extracts a first identifier from the first target parameter, queries the inventory information corresponding to the first identifier in the inventory database, and creates a corresponding order according to the first target parameter in response to determining that the inventory information is a target value, thereby completing the process of validating the order information obtained by parsing, thereby achieving the goal of distinguishing invalid order information as soon as possible. The processing effect is achieved, thereby avoiding wasting too much computing resources on invalid order information; in addition, the present invention performs idempotence judgment on the created order, and in response to determining that the order is not a duplicate order, sends the order to the second terminal, thereby realizing the process of performing repeatability judgment on the created order, and is also a process of performing secondary validity verification on the corresponding order information, and achieves the effect of assisting users of the online shopping mall terminal to judge whether to place a duplicate order, while enhancing the user experience and further reducing the computing resources occupied by invalid order information; in addition, the present invention obtains the target object corresponding to the order through matching by the second terminal and performs outbound processing, thereby promoting the progress of the ordering process of users who place orders on the online shopping mall terminal.
[0026] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0028] Figure 1is a schematic diagram of the main flow of the data processing method according to the first embodiment of the present invention;
[0029] Figure 2 is a schematic diagram of the main flow of a data processing method according to a second embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of the main flow of a data processing method according to a third embodiment of the present invention;
[0031] Figure 4 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention;
[0032] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0033] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0035] Figure 1 is a schematic diagram of the main flow of the data processing method according to the first embodiment of the present invention. Figure 1 As shown, the data processing method includes:
[0036] Step S101: receiving a first message sent by a first terminal, and parsing to obtain a first target parameter.
[0037] In the embodiment, through the processing of this step, the technical process of docking the order data between the online mall terminal (i.e., the first terminal) and the processing end is completed, and the corresponding data docking is processed in the form of a message queue, so as to improve the stability and reliability of the system while also being able to meet the large number of concurrent order data transmission needs during the peak period of online shopping, and achieve the technical effect of traffic peak shaving and valley filling. In a further embodiment, the first target parameter may be a key parameter necessary for bill of lading processing of the corresponding order data, such as: order number, product identification (i.e., the first identification), order quantity, delivery address (for selecting the warehouse with the lowest transportation cost for shipment), etc. By automatically parsing the first message, the noise data and non-critical parameters included in the first message can be effectively eliminated, thereby reducing the amount of data used for subsequent bill of lading processing, so as to comprehensively improve the bill of lading processing efficiency of the present technical solution.
[0038] Step S102: extract a first identifier from the first target parameter, and query inventory information corresponding to the first identifier in an inventory database.
[0039] In the embodiment, after processing in this step, the product identifier (i.e., the first identifier) is screened out from multiple key order parameters (i.e., the first target parameter), laying the foundation for subsequent rapid judgment of whether the inventory corresponding to the ordered product is sufficient.
[0040] In some embodiments, in order to improve the docking efficiency of data transfer between multiple terminals, the transfer platform of the present invention can be used to perform standardized processing on the transfer data, and the specific operations include: based on the preset first rule, the first target parameter is standardized to obtain a third message, and the first identifier is extracted from the third message; wherein, the standardized processing includes but is not limited to: according to the preset target format, the first target parameter is format converted, and according to the preset mapping table, the mapping value corresponding to each parameter value in the first target parameter is queried to update the first target parameter after the format conversion processing. In practice, because the generating ends of the first target parameter and the third message are different, that is, the third-party online platform terminal (i.e., the first terminal) and the processing end are respectively, therefore, even the parameter values with the same meaning may have great differences in data format. For example: if the delivery address parameters are all in the B area of A city, they may be expressed as "A city B area" in the first target parameter, and may be expressed as the corresponding geographic code "00A-0B" in the third message; on the other hand, for the order quantity parameter 3, it may be expressed as "3" in the first target area, and may be expressed as 003 in the third message. By standardizing the first target parameter into a third parameter, a technical process of converting the key parameters in the first message into information directly readable by the processing end is realized, thereby saving the computing resources and computing time occupied by the garbled code judgment and garbled code elimination process when processing the first message, and greatly improving the efficiency of the transit platform of the present invention and the subsequent second terminal in processing the circulating data.
[0041] In some embodiments, in order to archive all the received data sent by the first terminal to avoid data loss or data duplication when the network is abnormal, after obtaining the third message, the third message can be judged as idempotent in the message database, and in response to determining that the third message does not belong to a duplicate archived record, the third message is archived to the message database. In a further embodiment, the idempotent judgment can be processed by setting a unique constraint on the message database, such as using the order number as the unique constraint of each third message, that is, using the order number as the primary key for idempotent verification (here it is necessary to ensure that the primary key is not a parameter of the message database that is self-incremented), and prohibiting the existence of two records corresponding to the same order number in the message database; in other embodiments, an anti-duplicate table corresponding to the message database can also be generated, and the order number of each third message can be used as the unique index of the anti-duplicate table; in addition, the idempotent verification of the message database can also be processed through a token mechanism, a redisset mechanism, a database optimistic lock, etc. Therefore, it can be ensured that in the process of creating and continuously updating the message database, no message sent by the first terminal is lost, and when an exception occurs in the first terminal, the same message is sent repeatedly, or an exception occurs in the transfer platform of the processing end, and the card order is retried for the processed first message, it can be ensured that the message database is not archived repeatedly, thereby providing a strong guarantee for the accuracy of the message database archiving. In a further embodiment, when an error occurs in the processing of order information of a certain online shopping terminal (first terminal), the message database can provide strong data support for the corresponding error correction and traceability processing.
[0042] Step S103, in response to determining that the inventory information is a target value, creating a corresponding order according to the first target parameter.
[0043] After this step of processing, after multiple validity verifications have been performed on the received order information (i.e., the first message), that is, after determining that the goods ordered by the user of the online shopping mall terminal are in stock and are not duplicate orders, the corresponding pick-up order can be quickly generated according to the order information and sent to the warehouse terminal (i.e., the second terminal), so that the corresponding goods can be processed for delivery to advance the order progress of the ordered goods of the online shopping mall terminal. In a further embodiment, determining the inventory information as the target value can be to determine that the inventory quantity of the corresponding goods is within a range suitable for continued sale and the inventory status of the corresponding goods is valid, that is, the online ordering and delivery of the goods do not violate relevant regulatory regulations. After this step of processing, the technical effect of quickly screening out invalid order data and promoting the bill of lading processing for valid order data can be achieved.
[0044] In some embodiments, in order to generate an accurate and unique corresponding second terminal pick-up order based on the order data of the first terminal, so as to smoothly promote the subsequent order goods delivery process, it is possible to determine whether each parameter value in the third message is valid based on the preset second rule. In response to determining that there is an invalid parameter value in the third message, the following steps are executed in a loop until there is no invalid parameter value in the third message: the first message is parsed again to update the first target parameter according to the corresponding parsing result; the updated first target parameter is standardized based on the preset first rule to update the third message according to the corresponding standardized processing result; based on the preset second rule, it is determined whether there is an invalid parameter value in the updated third message to obtain a judgment result. For example, the situation where there is an invalid parameter value in the above-mentioned third message can correspond to the incorrect receiving information filled in by the user who placed an order at the online mall terminal, such as the receiving address is a default undeliverable address, or the receiving contact information is invalid. Therefore, if the pick-up order with invalid receiving information is sent to the second terminal for outbound processing, it is very likely that the goods cannot be shipped or lost during transportation, thereby causing disputes between the online mall terminal and the user. As for the situation where there are invalid parameter values in the third message, the most likely cause in actual processing is that in the process of the transit platform of the present invention processing the third message, a network anomaly causes a data parsing error. Therefore, parsing and retrying the corresponding first message can solve the above problem as quickly as possible, rather than directly feeding back the problem to the first terminal. This can also achieve the effect of issuing as few erroneous responses to the first terminal and the second terminal as possible.
[0045] In some embodiments, in order to identify the order data of the first terminal that has been repeatedly verified and correct, and to perform diversion processing compared with the erroneous data, it is possible to determine whether each parameter value in the third message is valid based on the preset second rule, and in response to determining that there is no invalid parameter value in the third message, create a corresponding order according to the third message. Through the processing of this step, only the corresponding order is created for the order data that has been repeatedly verified, which promotes the processing of normal orders. In a further embodiment, creating a corresponding order according to the third message can be regarded as a process of standardizing the third message, and obtaining instructions readable by the second terminal (i.e., the warehouse terminal), thereby improving the response speed of the second terminal to the terminal platform of the present invention.
[0046] Step S104, in response to determining that the order is not a duplicate order, the order is sent to the second terminal, so that the target object is matched through the second terminal and the outbound processing is performed.
[0047] In an embodiment, the transit platform of the present invention performs asynchronous processing on the order data of the first terminal, and can perform multiple and sufficient validity checks on the order data, ensuring that only correct order data is used to generate a pick-up order and send it to the second terminal, thereby minimizing the possibility of issuing erroneous instructions to the second terminal, thereby achieving the effect of reducing the difficulty of error screening at the second terminal and improving the processing efficiency of the second terminal.
[0048] In some embodiments, in order to feed back the corresponding logistics data to the first terminal as early as possible, the progress of the second terminal's outbound processing of the target object can be monitored, and in response to the second terminal completing the outbound processing of the target object, the corresponding logistics data is obtained, and the order and logistics data are input into a preset request template to obtain a shipping request instruction, so as to send the shipping request instruction to the corresponding interface of the first terminal. After the operation of this step, the outbound processing of the second terminal is monitored in real time, and the first terminal is fed back as soon as the corresponding logistics data is obtained, so as to effectively improve the online ordering experience of the first terminal user, that is, the user who places an order on the online mall terminal. In other embodiments, the second terminal, that is, the warehouse terminal, will archive the received pick-up deposit to form a corresponding ledger record, so as to achieve the effect of accurately recording and strictly controlling the goods to which it belongs.
[0049] In some embodiments, in order to facilitate the smooth docking of data sent from the second terminal to the first terminal, the following operations can be performed: receiving the second message sent by the second terminal, parsing to obtain the second target parameter, and inputting it into the preset request template to obtain the corresponding request instruction; determining the category of the second message, and determining the first terminal interface corresponding to the category based on the preset lookup table to send the request instruction to the first terminal interface. After this step of processing, the operation intention of the second terminal is accurately identified by judging the type and parsing the parameters of the second message, and after standardizing the second message into a request instruction, the corresponding information compatible with the first terminal is obtained and sent to the corresponding interface, avoiding the corresponding interface of the first terminal from diverting the received data and processing the garbled code recognition, thereby improving the docking efficiency of the second terminal to the first terminal for data docking.
[0050] In a further embodiment, in order to modify the corresponding internal archived information according to different messages sent by the second terminal, thereby achieving real-time updating of the internal archived information, before sending the request instruction to the first terminal interface, in response to determining that the second message belongs to the first category, the second target parameter is input into a preset inventory template to obtain corresponding inventory information, and the inventory information is added to the inventory database; in response to determining that the second message belongs to the second category, a second identifier is extracted from the second target parameter, information corresponding to the second identifier is queried in the inventory database, and the inventory information is modified accordingly according to the second target parameter to update the inventory database.
[0051] For example, the first category of messages mentioned above may be new product release messages, so the corresponding product information needs to be added in the inventory database, and the request instruction is sent to the first terminal, that is, the product release interface of the online shopping mall terminal, so as to put the new product on the shelves in the online shopping mall terminal, thereby opening up online sales channels for new products; the second category of messages mentioned above may be product quantity modification messages, or product status modification messages, so the inventory information needs to be modified accordingly in the inventory database, and the request instruction is sent to the first terminal, that is, the product information modification interface of the online shopping mall terminal, so as to avoid users placing orders for invalid products or purchasing large quantities of products that are out of stock.
[0052] In a further embodiment, the processing of the interface corresponding to the first terminal can be monitored through the transit platform of the present invention. If it is monitored that the interface processing corresponding to the first terminal fails, a corresponding request instruction retransmission mechanism is set to achieve full-process monitoring of multiple e-commerce terminals to ensure the smooth progress of online ordering.
[0053] Figure 2 is a schematic diagram of the main flow of a data processing method according to a second embodiment of the present invention, the data processing method comprising:
[0054] Step S201: receiving a second message sent by a second terminal, and parsing to obtain a second target parameter.
[0055] Step S202: In response to determining that the second message belongs to a new product listing category, extracting a product identifier from a second target parameter.
[0056] Step S203: adding corresponding inventory information in the inventory database according to the second target parameter.
[0057] Step S204: Generate a corresponding new product listing instruction and send it to the corresponding interface of the first terminal.
[0058] Step S205, monitoring the new product listing process of the first terminal interface, and determining whether the process is successful, if so, executing step S206, if not, executing step S204.
[0059] Step S206: receiving a first message sent by the first terminal.
[0060] Step S207: extract the product identifier from the first message, and query the inventory information corresponding to the product identifier.
[0061] Preferably, the query is performed in a preset inventory database.
[0062] Step S208: In response to determining that the inventory information is a target value, a corresponding order is created according to the first target parameter.
[0063] Step S209: in response to determining that the order is not a duplicate order, sending the order to the second terminal.
[0064] Preferably, an idempotency judgment is performed on the order in an order database.
[0065] Step S210: The second terminal matches and obtains the target object corresponding to the order and performs outbound processing.
[0066] Step S211, monitoring the second terminal to complete the outbound processing of the target object and obtaining the corresponding logistics data.
[0067] Step S212: Generate a corresponding shipping message based on the order and logistics data, and send it to the corresponding interface of the first terminal.
[0068] Figure 3 is a schematic diagram of the main flow of a data processing method according to a third embodiment of the present invention, the data processing method comprising:
[0069] Step S301: receiving a first message sent by an online shopping mall terminal.
[0070] Step S302: perform standardization processing on the first message to obtain a third message.
[0071] Step S303: In response to determining that the third message is not a duplicate message, the third message is archived in a message database.
[0072] Preferably, an idempotency judgment is performed on the third message in the message database.
[0073] Step S304: extract the product identifier from the third message, and query the inventory information corresponding to the product identifier.
[0074] Preferably, the query is performed in a preset inventory database.
[0075] Step S305, determine whether the inventory information is the target value, if so, execute step S306, if not, execute step S307.
[0076] Step S306, determining whether each parameter value in the third message is valid, if so, executing step S308, if not, executing step S302.
[0077] Preferably, the judgment is made based on a preset second rule.
[0078] Step S307, generate a bill of lading failure prompt message and send it to the corresponding interface of the online mall terminal.
[0079] Step S308: Create a corresponding order according to the third message.
[0080] Step S309, in response to determining that the order is not a duplicate order, sending the order to the warehouse terminal.
[0081] Preferably, an idempotency judgment is performed on the order in an order database.
[0082] Step S310: the warehouse terminal matches the target object corresponding to the order and performs outbound processing.
[0083] Step S311, monitor the warehouse terminal to complete the outbound processing of the target object and obtain the corresponding logistics data.
[0084] Step S312, generating a corresponding shipping message according to the order and logistics data, and sending it to the corresponding interface of the online mall terminal.
[0085] Step S313: receiving a second message sent by the warehouse terminal, and parsing the message to obtain a second target parameter.
[0086] Step S314: in response to determining that the second message belongs to the inventory adjustment category, extracting a commodity identifier from the second target parameter.
[0087] Step S315: modifying the inventory information corresponding to the commodity identifier in the inventory database according to the second target parameter.
[0088] Step S316: Generate a corresponding inventory display adjustment instruction according to the second message, and send it to the corresponding interface of the online mall terminal.
[0089] Preferably, the corresponding interface is determined according to the category of the second message.
[0090] Figure 4 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention, such as Figure 4As shown, the data processing device 400 includes a parsing module 401 and a bill of lading module 402. The parsing module 401 is used to receive a first message sent by a first terminal, parse to obtain a first target parameter, extract a first identifier from the first target parameter, and query the inventory information corresponding to the first identifier in the inventory database, and in response to determining that the inventory information is a target value, create a corresponding order according to the first target parameter; the bill of lading module 402 is used to send the order to the second terminal in response to determining that the order is not a duplicate order, so as to match the target object through the second terminal and perform outbound processing.
[0091] In some embodiments, the parsing module 401 is also used to: when extracting the first identifier from the first target parameter, perform standardization processing on the first target parameter based on a preset first rule to obtain a third message, and extract the first identifier from the third message, wherein the standardization processing includes but is not limited to: performing format conversion processing on the first target parameter according to a preset target format, and querying the mapping values corresponding to each parameter value in the first target parameter according to a preset mapping table to update the first target parameter after the format conversion processing.
[0092] In some embodiments, the parsing module 401 is further used to: after obtaining the third message, perform idempotency judgment on the third message in the message database, and in response to determining that the third message does not belong to a duplicate archive record, archive the third message to the message database.
[0093] In some embodiments, the parsing module 401 is also used to: when creating a corresponding order according to the first target parameter, based on a preset second rule, determine whether each parameter value in the third message is valid; in response to determining that there is no invalid parameter value in the third message, create a corresponding order according to the third message.
[0094] In some embodiments, the parsing module 401 is also used to: in response to determining that there are invalid parameter values in the third message, loop the following steps until there are no invalid parameter values in the third message: parse the first message again to update the first target parameter according to the corresponding parsing result; standardize the updated first target parameter based on a preset first rule to update the third message according to the corresponding standardization result; based on a preset second rule, determine whether there are invalid parameter values in the updated third message to obtain a determination result.
[0095] In some embodiments, the bill of lading module 402 is also used to: monitor the progress of the second terminal's outbound processing of the target object, obtain corresponding logistics data in response to the second terminal completing the outbound processing of the target object, input the order and logistics data into a preset request template, obtain a shipping request instruction, and send the shipping request instruction to the corresponding interface of the first terminal.
[0096] In some embodiments, the parsing module 401 is also used to: receive a second message sent by a second terminal, parse to obtain a second target parameter, and input it into a preset request template to obtain a corresponding request instruction; determine the category of the second message, and determine the first terminal interface corresponding to the category based on a preset lookup table to send the request instruction to the first terminal interface.
[0097] In some embodiments, the parsing module 401 is further used to: before sending the request instruction to the first terminal interface, in response to determining that the second message belongs to the first category, input the second target parameter into a preset inventory template to obtain corresponding inventory information; and add the inventory information to the inventory database.
[0098] In some embodiments, the parsing module 401 is further used to: before sending the request instruction to the first terminal interface, in response to determining that the second message belongs to the second category, extract a second identifier from the second target parameter, and query the inventory database for information corresponding to the second identifier; and modify the inventory information accordingly according to the second target parameter to update the inventory database.
[0099] It should be noted that the data processing method and the data processing device described in the present invention have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.
[0100] Figure 5 An exemplary system architecture 500 is shown to which the data processing method or data processing device according to the embodiment of the present invention can be applied.
[0101] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0102] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 501, 502, 503.
[0103] The terminal devices 501 , 502 , and 503 may be various electronic devices having a page display processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0104] The server 505 may be a server that provides various services, such as a background management server (only an example) that provides support for users to use the terminal devices 501, 502, and 503. The background management server may analyze and process the received data such as the product information query request, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0105] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the computing device is generally disposed in the server 505 .
[0106] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0107] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0108] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0109] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal page display processor (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0110] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0111] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, it may be described as follows: a processor includes a parsing module and a bill of lading module. The names of these modules do not, in some cases, limit the modules themselves.
[0114] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes receiving a first message sent by a first terminal, parsing to obtain a first target parameter; extracting a first identifier from the first target parameter, and querying the inventory information corresponding to the first identifier in the inventory database; in response to determining that the inventory information is a target value, creating a corresponding order according to the first target parameter; in response to determining that the order is not a duplicate order, sending the order to a second terminal, so as to match the target object through the second terminal and perform outbound processing.
[0115] The technical solution according to the embodiment of the present invention can solve the technical problem of low efficiency of data connection between multiple existing e-commerce terminals.
[0116] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data processing method, characterized in that: include: Receiving a first message sent by a first terminal, and parsing to obtain a first target parameter; Extracting a first identifier from the first target parameter, and querying inventory information corresponding to the first identifier in an inventory database; In response to determining that the inventory information is a target value, creating a corresponding order according to the first target parameter; In response to determining that the order is not a duplicate order, the order is sent to the second terminal so that the target object is matched and shipped out through the second terminal.
2. The method according to claim 1, characterized in that Extracting a first identifier from the first target parameter includes: Performing standardization processing on the first target parameter based on a preset first rule to obtain a third message, and extracting a first identifier from the third message; Among them, the standardization processing includes but is not limited to: format conversion processing of the first target parameter according to a preset target format, and querying the mapping value corresponding to each parameter value in the first target parameter according to a preset mapping table to update the first target parameter after format conversion processing.
3. The method according to claim 2, characterized in that After receiving the third message, including: An idempotency judgment is performed on the third message in the message database, and in response to determining that the third message does not belong to a duplicate archive record, the third message is archived in the message database.
4. The method according to claim 2, characterized in that: Create a corresponding order according to the first target parameter, including: Based on a preset second rule, it is determined whether each parameter value in the third message is valid, and in response to determining that no invalid parameter value exists in the third message, a corresponding order is created according to the third message.
5. The method according to claim 4, characterized in that In response to determining that an invalid parameter value exists in the third message, comprising: The following steps are executed repeatedly until there is no invalid parameter value in the third message: Parsing the first message again to update the first target parameter according to the corresponding parsing result; Performing standardization processing on the updated first target parameter based on a preset first rule, so as to update the third message according to the corresponding standardization processing result; Based on the preset second rule, it is determined whether there is an invalid parameter value in the updated third message to obtain a determination result.
6. The method according to claim 1, characterized in that include: Monitor the progress of the second terminal's outbound processing of the target object, and in response to the second terminal completing the outbound processing of the target object, obtain the corresponding logistics data, input the order and logistics data into a preset request template, and obtain a shipping request instruction, so as to send the shipping request instruction to the corresponding interface of the first terminal.
7. The method according to claim 1, characterized in that include: Receiving a second message sent by the second terminal, parsing to obtain a second target parameter, and inputting the second target parameter into a preset request template to obtain a corresponding request instruction; Determine the category of the second message, and determine the first terminal interface corresponding to the category based on a preset lookup table, so as to send the request instruction to the first terminal interface.
8. The method according to claim 7, characterized in that Before sending the request instruction to the first terminal interface, the method includes: In response to determining that the second message belongs to the first category, inputting the second target parameter into a preset inventory template to obtain corresponding inventory information; The inventory information is added to an inventory database.
9. The method according to claim 7, characterized in that: Before sending the request instruction to the first terminal interface, the method includes: In response to determining that the second message belongs to a second category, extracting a second identifier from a second target parameter, and querying an inventory database for information corresponding to the second identifier; The inventory information is modified accordingly according to the second target parameter to update the inventory database.
10. A data processing device, characterized in that: include: A parsing module, configured to receive a first message sent by a first terminal, and parse the message to obtain a first target parameter; Extracting a first identifier from the first target parameter, and querying inventory information corresponding to the first identifier in an inventory database; In response to determining that the inventory information is a target value, creating a corresponding order according to the first target parameter; The bill of lading module is used to send the order to the second terminal in response to determining that the order is not a duplicate order, so as to obtain the target object through the second terminal for outbound processing.
11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Order asynchronous processing method and system, medium and equipment
CN119850301A
