Order data verification method and device, equipment and storage medium

By calculating the order data difference of the target order under different strategies, the problem of order data verification relying on manual work in the existing technology is solved, and the accuracy and efficiency of the verification results are improved.

CN118627870AInactive Publication Date: 2024-09-10SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411116984.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, order data verification relies too much on manual labor, making it difficult to ensure the accuracy of verification results.

Method used

By calculating the order data of target orders under different strategies, verification results are generated, and middleware services are used to store order data and information. The distributed task scheduling platform schedules calculation tasks and calculates the absolute value of the order data difference to determine whether the data changes are normal.

Benefits of technology

It improves the accuracy and efficiency of order data verification, reduces manual intervention, and ensures the accuracy of data changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627870A
    Figure CN118627870A
Patent Text Reader

Abstract

The invention provides an order data verification method and device, equipment and a storage medium, and the method comprises the steps: in response to a first calculation task, calculating first order data corresponding to a target order under a first strategy according to order data and order information of historical orders; in response to the second measurement and calculation task, calculating second order data corresponding to the target order under a second strategy according to the order data and the order information of the historical orders; and generating a verification result according to the first order data and the second order data. In the embodiment of the invention, the first order data is calculated according to the first strategy, and the second order data is calculated according to the second strategy, so that the order data can be verified, and the accuracy of the verification result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an order data verification method, device, equipment and storage medium. Background Art

[0002] In the field of logistics, different strategies need to be formulated for freight orders under different delivery starting points, delivery destinations, different peak time periods, different weather conditions, etc., which will lead to adjustments to the freight order data.

[0003] In the prior art, different strategies are usually formulated manually, and order data before and after adjustment of the same order are obtained. By comparing the order data before and after adjustment, it is determined whether the strategy is successfully executed.

[0004] However, the above order data verification method relies too much on manual work, which makes it difficult to ensure the accuracy of the verification results. Summary of the invention

[0005] The main purpose of the present invention is to provide an order data verification method, device, computer equipment and storage medium, aiming to solve the technical problem that the current order data verification method is too dependent on manual work, which makes it difficult to ensure the accuracy of the verification results.

[0006] To achieve the above object, the present invention provides an order data verification method, the method comprising: In response to the first calculation task, first order data corresponding to the target order under the first strategy is calculated according to the order data and order information of the historical orders; In response to the second calculation task, second order data corresponding to the target order under the second strategy is calculated according to the order data and order information of the historical order; A verification result is generated according to the first order data and the second order data.

[0007] Optionally, before calculating the first order data corresponding to the target order under the first strategy according to the order data and order information of the historical orders in response to the first calculation task, the method further includes: For each order received, extract order data and order information of each order; storing the order data of each of the orders in the first database through the middleware service; The order information of each order is stored in the second database through the middleware service.

[0008] Optionally, calculating the first order data corresponding to the target order under the first strategy according to the order data and order information of the historical order includes: Acquire order data of target historical orders from the first database; Acquire order information of the target historical order from the second database; Based on the first strategy, the order data of the target historical order, and the order information of the target historical order, calculating the first order data corresponding to the target order under the first strategy; Among them, the order time corresponding to the target historical order is within a preset time period.

[0009] Optionally, acquiring order data of target historical orders from the first database includes: Obtain order data whose corresponding order time is within a preset time period from the search server; The acquiring the order information of the target historical order from the second database includes: Obtain order information from the distributed database whose corresponding order time is within the preset time period.

[0010] Optionally, the responding to the first measurement task includes: Creating the first measurement task at a first moment; Scheduling the first measurement task through a distributed task scheduling platform; In response to the first measurement task.

[0011] Optionally, the responding to the second measurement task includes: Creating the second measurement task at a second moment; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task; the second time is later than the first time; or, receiving an adjustment instruction; the adjustment instruction is used to create the second strategy; In response to the adjustment instruction, creating the second measurement task; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task.

[0012] Optionally, generating a verification result according to the first order data and the second order data includes: Calculating an absolute value of a difference between the second order data and the first order data; When the absolute value is greater than a preset value, generating a first result; If the absolute value is not greater than a preset value, generating a second result; The first result indicates that the data change is abnormal, and the second result indicates that the data change is normal.

[0013] In addition, to achieve the above-mentioned purpose, the present invention also provides an order data verification device, the order data verification device comprising: A first calculation module, configured to calculate, in response to the first calculation task, first order data corresponding to the target order under the first strategy according to the order data and order information of the historical orders; A second calculation module, configured to calculate, in response to a second calculation task, second order data corresponding to the target order under a second strategy according to the order data and order information of the historical order; A generating module is used to generate a verification result according to the first order data and the second order data.

[0014] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution: The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the order data verification method described in any one of the embodiments of the present application are implemented.

[0015] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the order data verification method described in any one of the embodiments of the present application are implemented.

[0016] Compared with the prior art, the embodiments of the present application have the following beneficial effects: The present application provides an order data verification method, device, equipment and storage medium, the method comprising: in response to a first calculation task, calculating the first order data corresponding to the target order under the first strategy based on the order data and order information of the historical order; in response to a second calculation task, calculating the second order data corresponding to the target order under the second strategy based on the order data and order information of the historical order; generating a verification result based on the first order data and the second order data. In an embodiment of the present application, in the case where the order data changes, the first order data before adjustment is calculated by the first calculation task, and the second order data after adjustment is calculated by the second calculation task, and then generating a verification result based on the first order data and the second order data. In an embodiment of the present application, the first order data is calculated according to the first strategy, and the second order data is calculated according to the second strategy, thereby improving the accuracy of the verification result. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 is an exemplary system architecture diagram to which the present application may be applied; Figure 2 is a flow chart of an order data verification method provided by an embodiment of the present invention; Figure 3 It is an application scenario diagram of the order data verification method provided by an embodiment of the present invention; Figure 4 It is a structural schematic diagram of an embodiment of an order data verification device provided by an embodiment of the present invention; Figure 5 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION

[0019] The order data verification method provided by the embodiment of the present invention is applied to the order data verification device. Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as those generally understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0022] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0023] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.

[0024] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.

[0025] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0026] It should be noted that the order data verification method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the order data verification device is generally set in the server / terminal device.

[0027] It should be understood that Figure 1 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 implementation requirements.

[0028] Please refer to Figure 2 , shows a flow chart of an embodiment of the order data verification method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.

[0029] It should be understood that the above order data may be the order amount or the route represented by the order.

[0030] In an optional implementation scenario, the first strategy and the second strategy are strategies for adjusting the order amount. In this scenario, the order data is the order amount. The verification result is generated by comparing the first price corresponding to the target order under the first strategy and the second price corresponding to the target order under the second strategy.

[0031] In another optional implementation scenario, the first strategy and the second strategy are strategies for adjusting the order route. In this scenario, the order data includes the order starting point, order end point and order path. The verification result is generated by comparing the order starting point, order end point and order path corresponding to the target order under the first strategy, and the order starting point, order end point and order path corresponding to the target order under the second strategy.

[0032] In order to clearly explain the technical solution, the following solution is explained using order data representing the order amount as an example. It should be noted that the order data verification method provided in the embodiment of the present application can also verify other types of order data, such as order routes, order users, etc.

[0033] The order data verification method provided by the embodiment of the present invention comprises the following steps: S210, in response to the first calculation task, calculating first order data corresponding to the target order under the first strategy based on the order data and order information of the historical orders.

[0034] It should be understood that each order data and order information can be recorded to form historical orders.

[0035] In this step, in response to the first calculation task, the first order data corresponding to the target order under the first strategy is calculated based on the order data and order information of the historical orders.

[0036] In an optional implementation scenario, the target order is an order that needs to be price checked before and after the price adjustment. By performing price checks on the target order, it is verified whether the adjusted strategy is accurate.

[0037] An optional implementation method is to receive a calculation instruction, obtain historical orders and a first strategy in response to the calculation instruction, and then calculate the first order data corresponding to the target order under the first strategy based on the order data and order information of the historical orders.

[0038] Another optional implementation is to create a measurement task at a preset time, and then obtain historical orders and a first strategy in response to the measurement task, and then calculate the first order data corresponding to the target order under the first strategy based on the order data and order information of the historical orders.

[0039] S220, in response to the second calculation task, calculating second order data corresponding to the target order under the second strategy based on the order data and order information of the historical orders.

[0040] It should be noted that the first strategy mentioned above can be understood as the strategy before the price changes, and the second strategy mentioned above can be understood as the strategy after the price changes.

[0041] It should be noted that the strategy can be understood as a collection of formulas and algorithms. The algorithm in the strategy is used to process the order information to obtain the weight value. The order data and weight value are input into the formula to calculate the price of the target order under the strategy.

[0042] It should be understood that the specific implementation method of calculating the second order data corresponding to the target order under the second strategy is the same as the specific implementation method of calculating the first order data corresponding to the target order under the first strategy.

[0043] S230: Generate a verification result according to the first order data and the second order data.

[0044] In this step, after obtaining the first order data and the second order data, a verification result is generated based on the first order data and the second order data, wherein the verification result is used to indicate whether the change in the order data is normal.

[0045] Optionally, after obtaining the first order data and the second order data, the absolute value of the difference between the second order data and the first order data is calculated, and the above absolute value is sent to the electronic device of the inspector. The inspector performs corresponding operations on the electronic device to generate a verification result.

[0046] For example, after receiving the absolute value, if the absolute value does not meet the requirements of the order data change, that is, the difference between the first order data and the second order data is too large, the inspector performs corresponding operations on the electronic device to generate a verification result characterizing the abnormal data change.

[0047] In the embodiment of the present application, when the order data changes, the first order data before adjustment is calculated by the first calculation task, and the second order data after adjustment is calculated by the second calculation task, and then the verification result is generated according to the first order data and the second order data. In the embodiment of the present application, the first order data is calculated according to the first strategy, and the second order data is calculated according to the second strategy, thereby improving the accuracy of the order data verification result.

[0048] Below, we will explain in detail how to process historical orders: Optionally, before calculating the first order data corresponding to the target order under the first strategy according to the order data and order information of the historical orders in response to the first calculation task, the method further includes: For each order received, extract order data and order information of each order; storing the order data of each of the orders in the first database through the middleware service; The order information of each order is stored in the second database through the middleware service.

[0049] In this embodiment, before order data verification is performed, order data and order information of each order are extracted for each order received.

[0050] The management service is called through the middleware service to store the order data of each order in the first database, and the order information of each order is stored in the second database.

[0051] It should be understood that the above middleware service is to call the kafka middleware.

[0052] In this embodiment, the order data is stored in the first database, and the order information is stored in the second database. The information of the target order is stored in two different databases in the above manner. When the order data of the target order is subsequently calculated, different data can be obtained from the two databases for calculation, so that the two types of data can be processed in parallel, thereby improving the processing speed of order verification.

[0053] Optionally, calculating the first order data corresponding to the target order under the first strategy according to the order data and order information of the historical order includes: Acquire order data of target historical orders from the first database; Acquire order information of the target historical order from the second database; Based on the first strategy, the order data of the target historical order, and the order information of the target historical order, calculating the first order data corresponding to the target order under the first strategy; Among them, the order time corresponding to the target historical order is within a preset time period.

[0054] In this embodiment, when calculating the first order data corresponding to the target order under the first strategy, the historical orders whose corresponding order time is within the preset time period are determined as the target historical orders. Optionally, the historical orders whose corresponding order time is within 24 hours are determined as the target historical orders; optionally, the historical orders whose corresponding order time is within 48 hours can also be determined as the target historical orders.

[0055] After determining the target historical order, the order data of the target historical order is obtained from the first database, the order information of the target historical order is obtained from the second database, and based on the first strategy, the order data of the target historical order and the order information of the target historical order, the first order data corresponding to the target order under the first strategy is calculated.

[0056] As described above, in an optional application scenario, the first strategy can be understood as a collection of formulas and algorithms. The algorithm in the first strategy is used to process the order information in the target historical order to obtain a weight value; the order data and the weight value are input into the formula to calculate the price corresponding to the target order under the first strategy. In the case of multiple target historical orders, the weight values ​​corresponding to the multiple target historical orders can be averaged to obtain the weight value finally input into the formula.

[0057] Optionally, acquiring order data of target historical orders from the first database includes: Obtain order data whose corresponding order time is within a preset time period from the search server; The acquiring the order information of the target historical order from the second database includes: Obtain order information from the distributed database whose corresponding order time is within the preset time period.

[0058] In this embodiment, the first database is a search server (Elasticsearch, ES), and the second database is a distributed database (HBase).

[0059] In this embodiment, order data corresponding to order times within a preset time period is obtained from a search server, and order information corresponding to order times within a preset time period is obtained from a distributed database.

[0060] It should be understood that in other embodiments, the first database includes other types of databases, and the second database may also be a distributed database such as Cassandra and Redis.

[0061] Optionally, the responding to the first measurement task includes: Creating the first measurement task at a first moment; Scheduling the first measurement task through a distributed task scheduling platform; In response to the first measurement task.

[0062] In this embodiment, a first calculation task is created at a first moment, the first calculation task is scheduled through a distributed task scheduling platform, and in response to the first calculation task, order data calculation for a target order under a first strategy is performed.

[0063] Optionally, the distributed task scheduling platform is XXL-job. Optionally, the distributed task scheduling platform may also be ElasticJob or Spring Schedule.

[0064] Optionally, the responding to the second measurement task includes: Creating the second measurement task at a second moment; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task; the second time is later than the first time; or, receiving an adjustment instruction; the adjustment instruction is used to create the second strategy; In response to the adjustment instruction, creating the second measurement task; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task.

[0065] An optional implementation is to create a second calculation task at a second moment, schedule the second calculation task through a distributed task scheduling platform, and perform order data calculation for the target order under the second strategy in response to the second calculation task. The second moment is later than the first moment.

[0066] Another optional implementation is to receive an adjustment instruction; the adjustment instruction is used to create a second strategy; in response to the adjustment instruction, a second measurement task is created; the second measurement task is scheduled through a distributed task scheduling platform; and the second measurement task is responded to.

[0067] It should be noted that the receiving time of the above adjustment instruction is later than the first moment.

[0068] In the above embodiment, by responding to different measurement tasks at different times, it is ensured that the order data of the target order before and after the strategy adjustment can be accurately calculated.

[0069] Optionally, generating a verification result according to the first order data and the second order data includes: Calculating an absolute value of a difference between the second order data and the first order data; When the absolute value is greater than a preset value, generating a first result; If the absolute value is not greater than a preset value, generating a second result; The first result indicates that the data change is abnormal, and the second result indicates that the data change is normal.

[0070] In this embodiment, in an optional implementation scenario, the absolute value of the difference between the second order data and the first order data is calculated; if the absolute value is greater than a preset value, it means that the price change does not meet expectations, and a first result indicating that the data change is abnormal is generated. If the absolute value is not greater than the preset value, it means that the price change meets expectations, and a second result indicating that the data change is normal is generated.

[0071] For example, in an application scenario where order data represents order price, the absolute value of the difference between the second order data and the first order data is 0.9, and the preset value is 1, which indicates that the price change is in line with expectations, and a second result representing that the data change is normal is generated.

[0072] In this embodiment, by comparing the first order data before the policy change and the second order data after the policy change, it can be ensured that the order configuration adjustment is executed correctly. Compared with the manual spot check method, the order data verification method provided in the embodiment of the present application can generate verification results more quickly and accurately, and the order data verification method provided in the embodiment of the present application has a higher coverage rate.

[0073] To understand the technical solution for executing order data calculation, please refer to Figure 3 ,like Figure 3 As shown, the middleware service stores the order data in the historical orders in the first database, and stores the order information in the second database.

[0074] The distributed task scheduling platform assigns the calculation task to the simulation calculation platform, which obtains the order data of the target historical order in the first database and the order information of the target historical order in the second database respectively; it executes the calculation task according to the order data of the target historical order, the order information of the target historical order and the strategy, and stores the calculation results in the database (DB) and hive. Hive is a data warehouse tool used for data extraction, transformation and loading.

[0075] See also Figure 4 , an order data verification device 400 provided by an embodiment of the present invention, the order data verification device 400 comprises: A first calculation module 410 is used to calculate first order data corresponding to the target order under the first strategy according to the order data and order information of the historical orders in response to the first calculation task; A second calculation module 420 is used to calculate, in response to the second calculation task, second order data corresponding to the target order under the second strategy according to the order data and order information of the historical order; The generating module 430 is used to generate a verification result according to the first order data and the second order data.

[0076] Optionally, the order data verification device 400 further includes: An extraction module, for extracting order data and order information of each order received; A first storage module, configured to store the order data of each order into a first database through a middleware service; The second storage module is used to store the order information of each order in a second database through the middleware service.

[0077] Optionally, the first calculation module 410 is specifically configured to: Acquire order data of target historical orders from the first database; Acquire order information of the target historical order from the second database; Based on the first strategy, the order data of the target historical order, and the order information of the target historical order, calculating the first order data corresponding to the target order under the first strategy; Among them, the order time corresponding to the target historical order is within a preset time period.

[0078] Optionally, the first calculation module 410 is further specifically configured to: Obtain order data whose corresponding order time is within a preset time period from the search server; Optionally, the first calculation module 410 is further specifically configured to: Obtain order information from the distributed database whose corresponding order time is within the preset time period.

[0079] Optionally, the first calculation module 410 is further specifically configured to: Creating the first measurement task at a first moment; Scheduling the first measurement task through a distributed task scheduling platform; In response to the first measurement task.

[0080] Optionally, the second calculation module 420 is specifically configured to: Creating the second measurement task at a second moment; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task; the second time is later than the first time; or, receiving an adjustment instruction; the adjustment instruction is used to create the second strategy; In response to the adjustment instruction, creating the second measurement task; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task.

[0081] Optionally, the generating module 430 is specifically configured to: Calculating an absolute value of a difference between the second order data and the first order data; When the absolute value is greater than a preset value, generating a first result; If the absolute value is not greater than a preset value, generating a second result; The first result indicates that the data change is abnormal, and the second result indicates that the data change is normal.

[0082] To solve the above technical problems, the present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment. The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with components 51-53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0083] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0084] The memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 5. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as the program code of the order data verification method, etc. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.

[0085] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run the program code stored in the memory 51 or process data, such as running the program code of the order data verification method.

[0086] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.

[0087] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the order data verification program, and the order data verification program can be executed by at least one processor so that the at least one processor performs the steps of the order data verification method as described above.

[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0089] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0090] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A method for verifying order data, It is characterized in that include: In response to the first calculation task, first order data corresponding to the target order under the first strategy is calculated according to the order data and order information of the historical orders; In response to the second calculation task, second order data corresponding to the target order under the second strategy is calculated according to the order data and order information of the historical order; An order data verification result is generated according to the first order data and the second order data.

2. The method according to claim 1, It is characterized in that In response to the first calculation task, before calculating the first order data corresponding to the target order under the first strategy according to the order data and order information of the historical order, the method further includes: For each order received, extract order data and order information of each order; storing the order data of each of the orders in a first database through a middleware service; The order information of each order is stored in the second database through the middleware service.

3. The method according to claim 2, It is characterized in that The calculating, based on the order data and order information of the historical orders, the first order data corresponding to the target order under the first strategy includes: Acquire order data of target historical orders from the first database; Acquire order information of the target historical order from the second database; Based on the first strategy, the order data of the target historical order, and the order information of the target historical order, calculating the first order data corresponding to the target order under the first strategy; Among them, the order time corresponding to the target historical order is within a preset time period.

4. The method according to claim 3, It is characterized in that The step of acquiring the order data of the target historical order from the first database includes: Obtain order data whose corresponding order time is within a preset time period from the search server; The acquiring the order information of the target historical order from the second database includes: Obtain order information from the distributed database whose corresponding order time is within the preset time period.

5. The method according to claim 1, It is characterized in that The response to the first measurement task includes: Creating the first measurement task at a first moment; Scheduling the first measurement task through a distributed task scheduling platform; In response to the first measurement task.

6. The method according to claim 1, It is characterized in that The response to the second measurement task includes: Creating the second measurement task at a second moment; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task; the second time is later than the first time; or, receiving an adjustment instruction; the adjustment instruction is used to create the second strategy; In response to the adjustment instruction, creating the second measurement task; Scheduling the second measurement task through a distributed task scheduling platform; In response to the second measurement task.

7. The method according to any one of claims 1 to 6, It is characterized in that The generating a verification result according to the first order data and the second order data includes: Calculating an absolute value of a difference between the second order data and the first order data; When the absolute value is greater than a preset value, generating a first result; If the absolute value is not greater than a preset value, generating a second result; The first result indicates that the data change is abnormal, and the second result indicates that the data change is normal.

8. An order data verification device, It is characterized in that include: A first calculation module, configured to calculate, in response to the first calculation task, first order data corresponding to the target order under the first strategy according to the order data and order information of the historical orders; A second calculation module, configured to calculate, in response to a second calculation task, second order data corresponding to the target order under a second strategy according to the order data and order information of the historical order; A generating module is used to generate a verification result according to the first order data and the second order data.

9. A computer device, It is characterized in that The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the order data verification method as claimed in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the order data verification method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dynamic price adjustment method for cargo transport order

    CN107392692A

  • Order price adjusting method and device

    CN107679732A

  • Commodity price adjustment processing method and device and electronic equipment

    CN111275477A

  • Order exception identification method and system and order risk management and control method and system

    CN111275507A

  • Order delivery cost adjusting method and device and computer readable storage medium

    CN114004563A