CN114820132A - Order distribution method and device, electronic equipment and storage medium - Google Patents

Order distribution method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114820132A
CN114820132A CN202210504159.1A CN202210504159A CN114820132A CN 114820132 A CN114820132 A CN 114820132A CN 202210504159 A CN202210504159 A CN 202210504159A CN 114820132 A CN114820132 A CN 114820132A
Authority
CN
China
Prior art keywords
order
service provider
platform
service
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210504159.1A
Other languages
Chinese (zh)
Inventor
严明斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202210504159.1A priority Critical patent/CN114820132A/en
Publication of CN114820132A publication Critical patent/CN114820132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Landscapes

  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a data processing technology, and discloses an order dispatching method, which comprises the following steps: generating a platform order according to the order request; sending the order information to each service provider service end in the corresponding service provider service end list; receiving order numbers returned by each service provider server according to the order information; when receiving an order receiving notification returned by a service provider server according to order information, determining the service provider server corresponding to the received first order receiving notification as a target server; and carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and canceling the service provider orders corresponding to other service provider clients. The invention also relates to a blockchain technique, and the order information can be stored in blockchain link points. The invention also provides an order distribution device, equipment and a medium. The invention can improve the accuracy of order distribution.

Description

Order distribution method and device, electronic equipment and storage medium
Technical Field
The present invention relates to data processing technologies, and in particular, to an order dispatching method and apparatus, an electronic device, and a storage medium.
Background
When accessing multiple service provider platforms, often in order to improve the success rate of ordering by a user, the platforms allow the user to select services of multiple service providers, especially some services with high timeliness, for example: driving, driving on behalf of others, running legs, etc.
However, in the existing order dispatching method, the service provider platform receives and binds a plurality of service provider orders, so that one order has a plurality of service provider orders, and the accuracy of order dispatching is low.
Disclosure of Invention
The invention provides an order dispatching method, an order dispatching device, electronic equipment and a storage medium, and mainly aims to improve the accuracy of order dispatching.
In order to achieve the above object, the present invention provides an order dispatching method, which is applied to a dispatching platform server and comprises:
responding to an order request of a user, and generating a platform order according to the order request;
acquiring order information of the platform order and a service provider server list corresponding to the platform order;
sending the order information to each service provider service end in a corresponding service provider service end list;
receiving order numbers returned by each service provider server according to the order information;
when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
and carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending order cancellation notification to other service provider service ends except the target service end in the service provider service end list.
Optionally, the performing, according to the order number and the target service end, a service provider order binding update on the platform order includes:
determining the order number corresponding to the target server as a target order number;
constructing a query statement according to the target order number;
inquiring in a preset order database by using the inquiry statement to obtain a target service provider order;
and binding the platform order with the target service provider order to obtain an updated platform order.
In order to achieve the above object, the present invention further provides an order dispatching method, which is applied to a service end of a service provider, and includes:
receiving order information sent by a serving platform server, generating a service provider order according to the order information, and sending an order number of the service provider order to the serving platform server;
generating a receipt receiving notice according to the order information and the order number, and sending the receipt receiving notice to the dispatching platform server;
and when receiving an order cancellation notice sent by the order delivery platform server based on the order receiving notice, carrying out order cancellation operation on the service order.
Optionally, the generating a service provider order according to the order information includes:
locking a thread used for generating the service provider order;
generating a service provider order corresponding to the order information by using the locked thread;
and storing the data of the service provider order into a preset order database, and unlocking the thread for generating the service provider order.
Optionally, the performing an order cancellation operation on the service provider order includes:
releasing the thread corresponding to the service provider order;
and deleting the data corresponding to the service provider order in the order database.
Optionally, after the order cancellation operation is performed on the service provider order, the method further includes:
step A, judging whether the order of the service provider is cancelled successfully or not;
b, when the order of the service provider is not cancelled successfully, canceling the order of the service provider, recording the cancellation times, and judging whether the cancellation times are greater than a preset cancellation threshold value or not;
and C, when the cancellation times are not more than a preset cancellation threshold value, returning to the step B, and when the cancellation times are more than the preset cancellation threshold value, sending an alarm notification to terminal equipment of preset monitoring personnel.
In order to solve the above problem, the present invention further provides an order distribution device, which is applied to a service end of a distribution platform, and comprises:
the order information sending module is used for responding to an order request of a user and generating a platform order according to the order request; acquiring order information of the platform order and a service provider server list corresponding to the platform order; sending the order information to each service provider service end in a corresponding service provider service end list;
the target server side confirmation module is used for receiving the order number returned by each service provider server side according to the order information; when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
and the order updating module is used for carrying out service provider order binding updating on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending an order canceling notice to other service provider service ends except the target service end in the service provider service end list.
In order to solve the above problem, the present invention further provides an order distribution device, which is applied to a service end of a service provider, and comprises:
the order number sending module is used for receiving order information sent by a serving platform server, generating a service provider order according to the order information and sending the order number of the service provider order to the serving platform server;
the order receiving notification sending module is used for generating an order receiving notification according to the order information and the order number and sending the order receiving notification to the dispatching platform server;
and the order canceling module is used for performing order canceling operation on the service order when receiving an order canceling notice sent by the order platform server based on the order receiving notice.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the order dispatching method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the order dispatching method described above.
When receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end; carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and confirming the only service order for receiving the order through the order receiving notification, thereby avoiding the condition that a plurality of service providers receive the order and improving the accuracy rate of order distribution; therefore, the order dispatching method, the order dispatching device, the electronic equipment and the readable storage medium provided by the embodiment of the invention improve the accuracy of order dispatching.
Drawings
FIG. 1 is a block diagram of a system for order distribution according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an order dispatching method applied to a dispatching platform server according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an order distribution method applied to a service end of a service provider according to an embodiment of the present invention;
FIG. 4 is a block diagram of an order distribution apparatus applied to a service end of a distribution platform according to an embodiment of the present invention;
FIG. 5 is a block diagram of an order distribution apparatus applied to a service end of a service provider according to an embodiment of the present invention;
fig. 6 is a schematic internal structural diagram of an electronic device for implementing an order dispatching method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides an order dispatching method. The execution subject of the order distribution method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiment of the present application. In other words, the order distribution method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: the cloud server can be an independent server, or can be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
The invention provides an order dispatching method. Referring to fig. 1, the order dispatching method in the embodiment of the present invention may be implemented by an order dispatching system, where the order dispatching system includes: a service end 1 of the dispatching platform and a service end 2 of the service provider. The service end 1 of the dispatching platform is a dispatching procedure of a dispatching platform for aggregating multiple service providers, and the service end 2 of a service provider is an order receiving procedure for receiving orders by the service provider.
In detail, the dispatching platform server 1 responds to an order request of a user and generates a platform order according to the order request; the dispatching platform server 1 acquires order information of the platform order and a service provider server list corresponding to the platform order; the dispatching platform server 1 sends the order information to each service provider server 2 in a corresponding service provider server list; the service provider server 2 receives the order information sent by the dispatching platform server 1, generates a service provider order according to the order information, and sends an order number of the service provider order to the dispatching platform server 1; the dispatching platform server 1 receives the order number returned by each service provider server 2 according to the order information; the service provider server 2 generates an order receiving notice according to the order information and the order number, and sends the order receiving notice to the dispatching platform server 1; when the dispatch platform server 1 receives an order receiving notification returned by the service provider server according to the order information, determining the service provider server 1 corresponding to the received first order receiving notification as a target server; the dispatching platform server 1 carries out service provider order binding update on the platform order according to the order number and the target server, sends the updated platform order to the terminal equipment of the user, and sends an order cancellation notice to other service provider servers 1 except the target server in the service provider server list; and when the service provider service end 2 receives an order cancellation notice sent by the order delivery platform service end 1 based on the order receiving notice, performing order cancellation operation on the service provider order.
Referring to fig. 2, a flow diagram of an order dispatching method applied to a dispatching platform server according to an embodiment of the present invention is shown, in the embodiment of the present invention, the order dispatching method includes:
and S11, responding to the order request of the user, and generating a platform order according to the order request.
In detail, the order request in the embodiment of the present invention is a request for a user to order a service on a service platform of an aggregation multi-service provider, where the request includes: the method comprises the steps that a user aggregates taxi taking requests initiated by taxi taking platforms of a plurality of taxi taking service providers, and the order requests comprise service requirement information of the user and corresponding user information.
Further, in the embodiment of the present invention, a corresponding platform order is generated according to the order request.
And S12, acquiring order information of the platform order and a service provider server list corresponding to the platform order.
In the embodiment of the present invention, because the platform order is only an order generated by the service platform, if the order of the user is to be completed, the order needs to be dispatched to a specific service provider for execution, and different service providers that can execute different orders are different, in the embodiment of the present invention, a service provider service end list corresponding to the order information of the platform order is obtained, where the service provider service end list is a list of all service provider service ends that can execute the platform order, and the service provider service end is an order receiving program used by the service provider to receive orders.
Optionally, in the embodiment of the present invention, the extracting order data in the platform order includes: order content, order number, user information, etc.
In another embodiment of the invention, the order information can be stored in the block link points, and the data taking efficiency is improved by using the characteristic of high throughput of the block link points.
And S13, sending the order information to each service provider in the corresponding service provider list.
Optionally, in the embodiment of the present invention, the order information may be sent to the corresponding service provider server by acquiring address information of each service provider server and constructing a channel according to the address information.
Optionally, in the embodiment of the present invention, a preset issuing interface corresponding to the service end of the service provider may be called to send the order information to each service end in the corresponding service end list of the service provider.
And S14, receiving order numbers returned by each service provider server according to the order information.
In detail, in the embodiment of the present invention, when the service provider generates the corresponding service provider order according to the order information, the order number corresponding to the generated service provider order is returned to the serving platform service end.
And S15, when receiving the order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end.
In detail, each platform order of the serving platform server only has one service provider to receive the order, but since a plurality of service providers compete at the same time, in the embodiment of the present invention, a first-return first-processing manner is adopted, and a service provider server corresponding to the received first order state information is determined as a target server.
S16, carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending order cancellation notification to other service provider service ends except the target service end in the service provider service end list.
In detail, in the embodiment of the present invention, the order number corresponding to the target server is determined as a target order number; and constructing a query statement according to the target order number, querying in the order database by using the query statement to obtain a target service provider order, and binding the platform order and the target service provider order to obtain an updated platform order.
Further, in the embodiment of the present invention, before querying in the order database by using the query data, it is further required to determine whether the target order number is locked; if the target order number is locked, it is indicated that the order corresponding to the target order number does not fall into the database, a self-rotation waiting method such as thread dormancy, an asynchronous thread, a delay queue and the like is used for waiting for unlocking of the target order number, and then the query statement is used for querying in the order database.
Specifically, in the embodiment of the present invention, binding the platform order with the service provider order to obtain an updated platform order includes:
locking the platform order;
and after the target service provider order and the platform order are bound and updated, unlocking the platform order.
According to the method and the device, the platform order is locked, so that the probability of misoperation of the platform order in the binding updating process is reduced.
Further, the embodiment of the present invention updates the order status corresponding to the platform order, and sends the updated order status to the terminal device of the user.
Optionally, the terminal device in the embodiment of the present invention includes: intelligent terminal equipment such as cell-phone, computer, panel.
Further, since the platform order and the target service provider order are already bound, it indicates that the service provider orders corresponding to the service providers other than the target service provider fail to be taken, and therefore, an order cancellation notification needs to be sent to the service providers other than the target service provider in the service provider list, so as to notify the corresponding service providers to cancel the generation of the corresponding service provider orders.
Referring to fig. 3, a flow chart of an order dispatching method applied to a service end of a service provider according to an embodiment of the present invention is shown, in the embodiment of the present invention, the order dispatching method includes:
s21, receiving order information sent by a serving platform server, generating a service provider order according to the order information, and sending the order number of the service provider order to the serving platform server.
Optionally, in the embodiment of the present invention, the dispatch platform server is a dispatch program of a dispatch platform aggregating multiple service providers.
In detail, in the embodiment of the present invention, the order information sent by the service end of the distribution platform is received, and a service provider order is generated according to the order information.
In detail, in the embodiment of the present invention, generating an order of a service provider according to the order information includes:
locking a thread for generating the service provider order according to the order information;
generating a service provider order corresponding to the order information by using the locked thread;
and storing the data of the service order in a preset order database, and unlocking the thread for generating the service provider order.
Furthermore, in the embodiment of the present invention, the order number of the service provider order is sent to the serving platform server, so that the serving platform server can query the corresponding service provider order.
And S22, generating an order receiving notice according to the order information and the order number, and sending the order receiving notice to the dispatching platform server.
Optionally, in the embodiment of the present invention, the order taking notification is an order taking text constructed according to the order information, where: and combining the order information, the order number and a preset service name to obtain the order receiving notice.
In the embodiment of the invention, the order receiving notice is sent to the dispatching platform server so as to inform the service platform that the service provider receives the order.
And S23, when receiving an order cancellation notice sent by the order receiving platform server based on the order receiving notice, performing order cancellation operation on the service order.
In detail, in the embodiment of the present invention, when an order cancellation notification sent by the order delivery platform server based on the order receiving notification is received, it is indicated that the platform order is already bound with the order confirmation of other service providers, and the order taking is failed, so that the order cancellation operation is performed on the service provider order, and the cancellation notification includes an order number of the service provider order, so that the corresponding service provider order is conveniently located through the order number.
Optionally, in the embodiment of the present invention, performing an order cancellation operation on the service provider order includes:
releasing the thread corresponding to the service provider order, and deleting the data corresponding to the service provider order in the order database.
Further, after the order cancellation operation is performed on the service provider order in the embodiment of the present invention, the method further includes:
step A, judging whether the order of the service provider is cancelled successfully or not;
b, when the order of the service provider is not cancelled successfully, canceling the order of the service provider, recording the cancellation times, and judging whether the cancellation times are greater than a preset cancellation threshold value or not;
and C, when the cancellation times are not more than a preset cancellation threshold value, returning to the step B, and when the cancellation times are more than the preset cancellation threshold value, sending an alarm notification to terminal equipment of preset monitoring personnel.
FIG. 4 is a functional block diagram of the order dispatching device applied to the service end of the dispatching platform according to the present invention.
The order distribution device 100 applied to the service end of the distribution platform of the present invention can be installed in an electronic device. According to the implemented functions, the order distribution apparatus 100 may include an order information sending module 101, a target server side confirmation module 102, and an order updating module 103, which may also be referred to as a unit, and refer to a series of computer program segments that can be executed by a processor of an electronic device and can perform fixed functions, and are stored in a memory of the electronic device.
In this embodiment, the functions of the modules/units of the order dispatching device applied to the dispatching platform server are as follows:
the order information sending module 101 is configured to respond to an order request of a user and generate a platform order according to the order request; acquiring order information of the platform order and a service provider server list corresponding to the platform order; sending the order information to each service provider service end in a corresponding service provider service end list;
the target server side confirmation module 102 is configured to receive an order number returned by each service provider server side according to the order information; when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
the order updating module 103 is configured to perform service provider order binding update on the platform order according to the order number and the target server, send the updated platform order to the terminal device of the user, and send an order cancellation notification to other service provider servers except the target server in the service provider server list.
In detail, in the embodiment of the present invention, when the modules in the order dispatching device 100 are used, the same technical means as the order dispatching method described in fig. 2 is adopted, and the same technical effects can be produced, which is not described herein again.
FIG. 5 is a functional block diagram of the order dispatching device applied to the service end of the service provider.
The order distribution apparatus 200 applied to the service end of the service provider of the present invention may be installed in an electronic device. According to the implemented functions, the order distribution apparatus 200 may include an order number sending module 201, an order receiving notification sending module 202, and an order canceling module 203, which may also be referred to as a unit, and refer to a series of computer program segments capable of being executed by a processor of an electronic device and performing fixed functions, and stored in a memory of the electronic device.
In this embodiment, the functions of the modules/units of the order dispatching device applied to the service end of the service provider are as follows:
the order number sending module 201 is configured to receive order information sent by a serving platform server, generate a service provider order according to the order information, and send an order number of the service provider order to the serving platform server;
the order receiving notification sending module 202 is configured to generate an order receiving notification according to the order information and the order number, and send the order receiving notification to the dispatch platform server;
the order cancellation module 203 is configured to perform an order cancellation operation on the service order when receiving an order cancellation notification sent by the order delivery platform server based on the order receiving notification.
In detail, when the modules in the order dispatching device 200 according to the embodiment of the present invention are used, the same technical means as the order dispatching method described in fig. 3 is adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device implementing the order distribution method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as an order dispatch program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of an order distribution program, etc., but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., order distribution programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 6 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 6 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The order dispatch program stored in the memory 11 of the electronic device is a combination of computer programs which, when run in the processor 10, may implement an order dispatch method.
Optionally, when the electronic device is a serving platform server, the order serving method includes:
responding to an order request of a user, and generating a platform order according to the order request;
acquiring order information of the platform order and a service provider server list corresponding to the platform order;
sending the order information to each service provider service end in a corresponding service provider service end list;
receiving order numbers returned by each service provider server according to the order information;
when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
and carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending order cancellation notification to other service provider service ends except the target service end in the service provider service end list.
Optionally, when the electronic device is a service end of a service provider, the order dispatching method includes:
receiving order information sent by a serving platform server, generating a service provider order according to the order information, and sending an order number of the service provider order to the serving platform server;
generating a receipt receiving notice according to the order information and the order number, and sending the receipt receiving notice to the dispatching platform server;
and when receiving an order cancellation notice sent by the order delivery platform server based on the order receiving notice, carrying out order cancellation operation on the service order.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, and is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic diskette, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium storing a computer program, which is executable by a processor of an electronic device.
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. The order dispatching method is applied to a dispatching platform server and comprises the following steps:
responding to an order request of a user, and generating a platform order according to the order request;
acquiring order information of the platform order and a service provider server list corresponding to the platform order;
sending the order information to each service provider service end in a corresponding service provider service end list;
receiving order numbers returned by each service provider server according to the order information;
when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
and carrying out service provider order binding update on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending order cancellation notification to other service provider service ends except the target service end in the service provider service end list.
2. The order dispatching method of claim 1, wherein the performing a facilitator order binding update for the platform order according to the order number and the target service end comprises:
determining the order number corresponding to the target server as a target order number;
constructing a query statement according to the target order number;
inquiring in a preset order database by using the inquiry statement to obtain a target service provider order;
and binding the platform order with the target service provider order to obtain an updated platform order.
3. An order dispatching method is characterized in that the method is applied to a service end of a service provider and comprises the following steps:
receiving order information sent by a serving platform server, generating a service provider order according to the order information, and sending an order number of the service provider order to the serving platform server;
generating a receipt receiving notice according to the order information and the order number, and sending the receipt receiving notice to the dispatching platform server;
and when receiving an order cancellation notice sent by the order delivery platform server based on the order receiving notice, carrying out order cancellation operation on the service order.
4. The order serving method of claim 3, wherein said generating a facilitator order based on said order information comprises:
locking a thread used for generating the service provider order;
generating a service provider order corresponding to the order information by using the locked thread;
and storing the data of the service provider order into a preset order database, and unlocking the thread for generating the service provider order.
5. The order dispatching method of claim 3, wherein said performing an order cancellation operation on said facilitator order comprises:
releasing the thread corresponding to the service provider order;
and deleting the data corresponding to the service provider order in the order database.
6. The order serving method of claim 3, wherein after the order cancellation operation on the facilitator order, the method further comprises:
step A, judging whether the order of the service provider is cancelled successfully or not;
b, when the order of the service provider is not cancelled successfully, canceling the order of the service provider, recording the cancellation times, and judging whether the cancellation times are greater than a preset cancellation threshold value or not;
and C, when the cancellation times are not more than a preset cancellation threshold value, returning to the step B, and when the cancellation times are more than the preset cancellation threshold value, sending an alarm notification to terminal equipment of preset monitoring personnel.
7. The order distributing device is applied to a distributing platform server side and comprises the following components:
the order information sending module is used for responding to an order request of a user and generating a platform order according to the order request; acquiring order information of the platform order and a service provider server list corresponding to the platform order; sending the order information to each service provider service end in a corresponding service provider service end list;
the target server side confirmation module is used for receiving the order number returned by each service provider server side according to the order information; when receiving an order receiving notification returned by the service provider service end according to the order information, determining the service provider service end corresponding to the received first order receiving notification as a target service end;
and the order updating module is used for carrying out service provider order binding updating on the platform order according to the order number and the target service end, sending the updated platform order to the terminal equipment of the user, and sending an order canceling notice to other service provider service ends except the target service end in the service provider service end list.
8. An order dispatching device, which is applied to a service end of a service provider, comprises:
the order number sending module is used for receiving order information sent by a serving platform server, generating a service provider order according to the order information and sending the order number of the service provider order to the serving platform server;
the order receiving notification sending module is used for generating an order receiving notification according to the order information and the order number and sending the order receiving notification to the dispatching platform server;
and the order canceling module is used for performing order canceling operation on the service order when receiving an order canceling notice sent by the order platform server based on the order receiving notice.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the order dispatching method of any of claims 1-6.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the order serving method of any of claims 1 to 6.
CN202210504159.1A 2022-05-10 2022-05-10 Order distribution method and device, electronic equipment and storage medium Pending CN114820132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210504159.1A CN114820132A (en) 2022-05-10 2022-05-10 Order distribution method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210504159.1A CN114820132A (en) 2022-05-10 2022-05-10 Order distribution method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114820132A true CN114820132A (en) 2022-07-29

Family

ID=82513421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210504159.1A Pending CN114820132A (en) 2022-05-10 2022-05-10 Order distribution method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114820132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115578160A (en) * 2022-11-24 2023-01-06 云账户技术(天津)有限公司 Temporary order receiving method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115578160A (en) * 2022-11-24 2023-01-06 云账户技术(天津)有限公司 Temporary order receiving method and device
CN115578160B (en) * 2022-11-24 2023-04-07 云账户技术(天津)有限公司 Temporary order receiving method and device

Similar Documents

Publication Publication Date Title
CN111651471B (en) Target data query method and device, electronic equipment and storage medium
CN111429121B (en) Block chain-based electronic ticket processing method, device, equipment and storage medium
CN111582815A (en) Engineering management method and device for nuclear power station, terminal equipment and storage medium
CN112506559A (en) Gray scale publishing method and device based on gateway, electronic equipment and storage medium
CN111880948A (en) Data refreshing method and device, electronic equipment and computer readable storage medium
CN111538573A (en) Asynchronous task processing method and device and computer readable storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN113419856A (en) Intelligent current limiting method and device, electronic equipment and storage medium
CN114820132A (en) Order distribution method and device, electronic equipment and storage medium
CN114205322A (en) Message sending method and device, electronic equipment and storage medium
CN117193975A (en) Task scheduling method, device, equipment and storage medium
CN113419718A (en) Data transmission method, device, equipment and medium
CN113342867A (en) Data distribution and management method and device, electronic equipment and readable storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN112540839A (en) Information changing method, device, electronic equipment and storage medium
CN112328656B (en) Service query method, device, equipment and storage medium based on middle platform architecture
CN113542387B (en) System release method and device, electronic equipment and storage medium
CN115086400B (en) Message interaction method and device, electronic equipment and storage medium
CN112527842B (en) System flow pushing method and device, electronic equipment and computer readable storage medium
CN115934576B (en) Test case generation method, device, equipment and medium in transaction scene
CN115225458A (en) Alarm notification method, alarm notification device, electronic equipment and storage medium
CN117056097A (en) Data interaction method, system, electronic equipment and storage medium
CN113452768A (en) Data reminding method, device, equipment and storage medium based on associated equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination