CN111833131A - An order processing method, device, electronic device and storage medium - Google Patents
An order processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN111833131A CN111833131A CN201910459294.7A CN201910459294A CN111833131A CN 111833131 A CN111833131 A CN 111833131A CN 201910459294 A CN201910459294 A CN 201910459294A CN 111833131 A CN111833131 A CN 111833131A
- Authority
- CN
- China
- Prior art keywords
- time point
- order
- sub
- time period
- increment information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Managing shopping lists, e.g. compiling or processing purchase lists
- G06Q30/0635—Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请提供了一种订单处理方法、装置、电子设备及存储介质,该方法包括:基于第一子时间段内的待处理订单,确定第一子时间段内的最大资源增量信息;第一子时间段为当前时间段内起始时间点到匹配该起始时间点的临界时间点的时间段;针对第二子时间段内的任一时间点,基于该时间点到起始时间点内的待处理订单,确定该时间点的资源增量信息;第二子时间段为临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段;根据最大资源增量信息和第二子时间段内各个时间点的资源增量信息,监控第二子时间段内的分单时间点,并在监控到的分单时间点进行分单处理。这样,能够将更多相匹配的待处理订单进行分单,提高了平台的资源增量信息。
The present application provides an order processing method, device, electronic device and storage medium. The method includes: determining maximum resource increment information in the first sub-period based on pending orders in the first sub-period; first The sub time period is the time period from the start time point in the current time period to the critical time point that matches the start time point; for any time point in the second sub time period, based on the time point to the start time point to determine the resource increment information at this time point; the second sub-time period is the time period from the time point after the critical time point to the time point before the end time point in the current time period; according to the maximum resource increase The amount information and the resource increment information at each time point in the second sub-time period are monitored, and the order distribution time point in the second sub-time period is monitored, and the order distribution process is performed at the monitored order distribution time point. In this way, more matching pending orders can be divided into orders, which improves the resource increment information of the platform.
Description
技术领域technical field
本申请涉及数据处理技术领域,具体而言,涉及一种订单处理方法、装置、电子设备及存储介质。The present application relates to the technical field of data processing, and in particular, to an order processing method, apparatus, electronic device and storage medium.
背景技术Background technique
随着互联网的快速发展,越来越多的互联网产品被人们使用,比如网约车平台。网约车平台能够为乘客提供多种出行服务,包括:快车、专车、出租车、单车、拼车等。With the rapid development of the Internet, more and more Internet products are used by people, such as online car-hailing platforms. The online car-hailing platform can provide passengers with a variety of travel services, including: express trains, special cars, taxis, bicycles, carpooling, etc.
针对拼车服务,现有技术提供的拼车订单的分单方法如下:平台预先确定分单间隔时间,针对任一区域,平台每隔上述分单间隔时间对来自该区域的拼车订单进行一次分单处理。但是,采用上述分单方式,平台的分单效率较低。For carpooling services, the prior art provides the following method for splitting carpooling orders: the platform pre-determines the order splitting interval, and for any area, the platform performs a splitting process on the carpooling order from that region at the above-mentioned splitting interval. . However, with the above-mentioned order distribution method, the platform's order distribution efficiency is low.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请的目的在于提供一种订单处理方法、装置、电子设备及存储介质,能够对更多相匹配的待处理订单进行分单处理,提高了平台的分单效率。In view of this, the purpose of this application is to provide an order processing method, device, electronic device and storage medium, which can perform order division processing for more matching pending orders and improve the order division efficiency of the platform.
第一方面,本申请实施例提供了一种订单处理方法,包括:In a first aspect, an embodiment of the present application provides an order processing method, including:
基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息;其中,所述第一子时间段为当前时间段内起始时间点到匹配该起始时间点的临界时间点的时间段,且所述第一子时间段被配置为停止分单;Based on the pending orders sent by the service requester in the first sub-time period of the current time period, determine the maximum resource increment information in the first sub-time period; wherein, the first sub-time period is the current time period The time period from the starting time point to the critical time point matching the starting time point, and the first sub-time period is configured to stop order splitting;
针对当前时间段的第二子时间段内的任一时间点,基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息;其中,所述第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段;For any time point in the second sub-time period of the current time period, based on the pending order sent by the service requester from the time point to the starting time point, determine the resource increment information at the time point; wherein, The second sub-time period is the time period from the time point after the critical time point to the time point before the end time point in the current time period;
根据所述最大资源增量信息和所述第二子时间段内各个时间点的资源增量信息,监控所述第二子时间段内的分单时间点;According to the maximum resource increment information and the resource increment information at each time point in the second sub-time period, monitoring the time points of the order distribution in the second sub-time period;
当监控到所述第二子时间段内的分单时间点时,在该分单时间点对相应的待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端。When monitoring the time point of order splitting within the second sub-time period, perform split order matching processing on the corresponding pending order at the order split time point, and send the obtained order split matching result to the corresponding service request end.
结合第一方面,本申请实施例提供了第一方面的第一种可能的实施方式,其中,当监控到所述第二子时间段内的分单时间点时,所述方法还包括:In conjunction with the first aspect, the embodiment of the present application provides a first possible implementation of the first aspect, wherein, when monitoring the time point of order splitting within the second sub-time period, the method further includes:
选取监控到的所述分单时间点作为新的起始时间点,返回执行基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息的步骤,直至得到所述第二子时间段内最后一个时间点的监控结果。Select the monitored order distribution time point as the new starting time point, return to execute the pending order sent by the service requester in the first sub-time based on the current time period, and determine the order within the first sub-time. The step of maximum resource increment information until the monitoring result of the last time point in the second sub-time period is obtained.
结合第一方面,本申请实施例提供了第一方面的第二种可能的实施方式,其中,在将得到的分单匹配结果发送给相应的服务请求端之后,所述方法还包括:In conjunction with the first aspect, the embodiment of the present application provides a second possible implementation manner of the first aspect, wherein, after sending the obtained order split matching result to the corresponding service requester, the method further includes:
获取所述结束时间点到所述结束时间点的前一个分单时间点内的待处理订单;Acquire the pending orders within the previous order split time point from the end time point to the end time point;
在所述结束时间点对获取的所述待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端。At the end time point, the obtained order to be processed is subjected to order split matching processing, and the obtained order split matching result is sent to the corresponding service requester.
结合第一方面或者第一方面的第一种可能的实施方式,本申请实施例提供了第一方面的第三种可能的实施方式,其中,针对任一起始时间点,通过以下方法确定匹配该起始时间点的临界时间点:With reference to the first aspect or the first possible implementation manner of the first aspect, the embodiment of the present application provides a third possible implementation manner of the first aspect, wherein, for any starting time point, the following method is used to determine whether to match the Critical time points for starting time points:
基于当前时间段内的结束时间点、该起始时间点以及预设阈值,确定匹配该起始时间点的临界时间点对应的时间长度;Based on the end time point in the current time period, the start time point and the preset threshold, determine the time length corresponding to the critical time point matching the start time point;
基于该起始时间点和所述时间长度,确定匹配该起始时间点的临界时间点。Based on the starting time point and the time length, a critical time point matching the starting time point is determined.
结合第一方面,本申请实施例提供了第一方面的第四种可能的实施方式,其中,所述基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息,包括:In conjunction with the first aspect, the embodiment of the present application provides a fourth possible implementation manner of the first aspect, wherein the determination of the Maximum resource increment information in the first sub-period, including:
基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息;Determine the resource increment information corresponding to each time point based on the first pending orders corresponding to each time point in the first sub-time period;
从各个时间点分别对应的资源增量信息中,选取所述第一子时间段内的最大资源增量信息。From the resource increment information corresponding to each time point, the maximum resource increment information in the first sub-time period is selected.
结合第一方面的第四种可能的实施方式,本申请实施例提供了第一方面的第五种可能的实施方式,其中,所述基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息,包括:With reference to the fourth possible implementation manner of the first aspect, the embodiment of the present application provides the fifth possible implementation manner of the first aspect, wherein the respective time points in the first sub-time period correspond to , determine the resource increment information corresponding to each time point, including:
针对所述第一子时间段内的任一时间点,获取该时间点到所述起始时间点内的第一待处理订单,并在该时间点对所述第一待处理订单进行分单匹配处理,得到该时间点对应的第一资源增量信息;For any time point in the first sub-time period, obtain the first pending order from the time point to the starting time point, and divide the first pending order at this time point Matching processing to obtain the first resource increment information corresponding to the time point;
针对该时间点到所述起始时间点内的任一第一目标时间点,获取该第一目标时间点到前一个时间点内的第二待处理订单,并在该第一目标时间点对所述第二待处理订单进行分单匹配处理,得到该第一目标时间点对应的第二资源增量信息;其中,所述第一目标时间点包括该时间点;For any first target time point from the time point to the start time point, obtain the second pending order from the first target time point to the previous time point, and pair the order at the first target time point with The second to-be-processed order is divided and matched to obtain the second resource increment information corresponding to the first target time point; wherein, the first target time point includes the time point;
基于该时间点对应的所述第一资源增量信息和各个第一目标时间点对应的第二资源增量信息,确定该时间点对应的资源增量信息。Based on the first resource increment information corresponding to the time point and the second resource increment information corresponding to each first target time point, the resource increment information corresponding to the time point is determined.
结合第一方面,本申请实施例提供了第一方面的第六种可能的实施方式,其中,所述基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息,包括:In conjunction with the first aspect, the embodiment of the present application provides a sixth possible implementation manner of the first aspect, wherein the determination of the Resource increment information at a point in time, including:
获取该时间点到所述起始时间点内服务请求端发送的待处理订单,并在该时间点对所述待处理订单进行分单匹配处理,得到该时间点对应的第三资源增量信息;Obtain the pending orders sent by the service requester from this time point to the starting time point, and perform order split matching processing on the pending orders at this time point, and obtain the third resource increment information corresponding to this time point ;
针对该时间点到所述起始时间点内的任一第二目标时间点,获取该第二目标时间点到前一个时间点内的第三待处理订单,并在该第二目标时间点对所述第三待处理订单进行分单匹配处理,得到该第二目标时间点对应的第四资源增量信息;其中,所述第二目标时间点包括该时间点;For any second target time point from this time point to the starting time point, obtain the third pending order from the second target time point to the previous time point, and at the second target time point The third to-be-processed order is divided and matched to obtain fourth resource increment information corresponding to the second target time point; wherein, the second target time point includes the time point;
基于该时间点对应的所述第三资源增量信息和各个第二目标时间点分别对应的第四资源增量信息,确定该时间点对应的资源增量信息。Based on the third resource increment information corresponding to the time point and the fourth resource increment information corresponding to each second target time point, the resource increment information corresponding to the time point is determined.
结合第一方面的第六种可能的实施方式,本申请实施例提供了第一方面的第七种可能的实施方式,其中,所述在该时间点对所述待处理订单进行分单匹配处理,得到该时间点对应的第三资源增量信息,包括:With reference to the sixth possible implementation manner of the first aspect, the embodiment of the present application provides the seventh possible implementation manner of the first aspect, wherein the order to be processed is said to perform order split matching processing at this time point , to obtain the third resource increment information corresponding to the time point, including:
在该时间点选取与所述待处理订单相匹配的服务提供端;Select the service provider that matches the order to be processed at this point in time;
基于发送所述待处理订单的服务请求端对应的资源供给信息和所述服务提供端对应的资源消耗信息,确定在该时间点分单的第三资源增量信息。Based on the resource supply information corresponding to the service requester that sent the pending order and the resource consumption information corresponding to the service provider, the third resource increment information for order distribution at this time point is determined.
结合第一方面的第七种可能的实施方式,本申请实施例提供了第一方面的第八种可能的实施方式,其中,所述在该时间点选取与所述待处理订单相匹配的服务提供端,包括:With reference to the seventh possible implementation manner of the first aspect, the embodiment of the present application provides the eighth possible implementation manner of the first aspect, wherein the service matching the order to be processed is selected at this time point provider, including:
在该时间点选取与所述待处理订单相匹配的处于空闲状态的服务提供端;At this point in time, select an idle service provider that matches the pending order;
或者,or,
在该时间点选取与所述待处理订单相匹配的处于服务状态的服务提供端。At this point in time, a service provider in a service state that matches the pending order is selected.
结合第一方面的第六种可能的实施方式,本申请实施例提供了第一方面的第九种可能的实施方式,其中,所述基于该时间点对应的所述第三资源增量信息和各个第二目标时间点分别对应的第四资源增量信息,确定该时间点对应的资源增量信息,包括:With reference to the sixth possible implementation manner of the first aspect, the embodiment of the present application provides the ninth possible implementation manner of the first aspect, wherein the third resource increment information corresponding to the time point and The fourth resource increment information corresponding to each second target time point respectively, and the resource increment information corresponding to the time point is determined, including:
确定各个第二目标时间点分别对应的第四资源增量信息的和值;determining the sum value of the fourth resource increment information corresponding to each second target time point respectively;
将该时间点对应的所述第三资源增量信息与确定的所述和值的差值,确定为该时间点对应的资源增量信息。The difference between the third resource increment information corresponding to the time point and the determined sum value is determined as the resource increment information corresponding to the time point.
第二方面,本申请实施例还提供了一种订单处理装置,包括:In a second aspect, an embodiment of the present application further provides an order processing device, including:
第一确定模块,用于基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息;其中,所述第一子时间段为当前时间段内起始时间点到匹配该起始时间点的临界时间点的时间段,且所述第一子时间段被配置为停止分单;a first determination module, configured to determine the maximum resource increment information in the first sub-time period based on the pending order sent by the service requester in the first sub-time period of the current time period; wherein, the first sub-time period The time period is the time period from the starting time point in the current time period to the critical time point matching the starting time point, and the first sub-time period is configured to stop order splitting;
第二确定模块,用于针对当前时间段的第二子时间段内的任一时间点,基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息;其中,所述第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段;The second determination module is configured to, for any time point in the second sub-time period of the current time period, determine the order of the time point based on the pending order sent by the service requester from the time point to the starting time point. Resource increment information; wherein, the second sub time period is the time period from the time point after the critical time point to the time point before the end time point in the current time period;
监控模块,用于根据所述最大资源增量信息和所述第二子时间段内各个时间点的资源增量信息,监控所述第二子时间段内的分单时间点;a monitoring module, configured to monitor the time points of order distribution in the second sub-time period according to the maximum resource increment information and the resource increment information at each time point in the second sub-time period;
第一分单匹配模块,用于当监控到所述第二子时间段内的分单时间点时,在该分单时间点对相应的待处理订单进行分单匹配处理;The first order split matching module is configured to perform split order matching processing on the corresponding pending order at the order split time point when monitoring the split order time point within the second sub-time period;
第一发送模块,用于将得到的分单匹配结果发送给相应的服务请求端。The first sending module is used for sending the obtained order distribution matching result to the corresponding service requester.
结合第二方面,本申请实施例提供了第二方面的第一种可能的实施方式,其中,所述装置还包括:In conjunction with the second aspect, the embodiments of the present application provide a first possible implementation manner of the second aspect, wherein the device further includes:
循环模块,用于选取监控到的所述分单时间点作为新的起始时间点,将所述新的起始时间点通知所述第一确定模块,以便所述第一确定模块、所述第二确定模块和所述监控模块运行,直至得到所述第二子时间段内最后一个时间点的监控结果。The circulation module is used to select the monitored time point of order splitting as a new start time point, and notify the first determination module of the new start time point, so that the first determination module, the The second determining module and the monitoring module operate until the monitoring result at the last time point in the second sub-period is obtained.
结合第二方面,本申请实施例提供了第二方面的第二种可能的实施方式,其中,所述结束时间点被配置为所述分单时间点;所述装置还包括:In conjunction with the second aspect, the embodiment of the present application provides a second possible implementation manner of the second aspect, wherein the end time point is configured as the order splitting time point; the device further includes:
获取模块,用于获取所述结束时间点到所述结束时间点的前一个分单时间点内的待处理订单;an acquisition module, used to acquire the pending orders within the previous order split time point from the end time point to the end time point;
第二分单匹配模块,用于在所述结束时间点对获取的所述待处理订单进行分单匹配处理;The second order split matching module is used to perform split order matching processing on the obtained order to be processed at the end time point;
第二发送模块,用于将得到的分单匹配结果发送给相应的服务请求端。The second sending module is used for sending the obtained order split matching result to the corresponding service requester.
结合第二方面或者第二方面的第一种可能的实施方式,本申请实施例提供了第二方面的第三种可能的实施方式,其中,所述装置还包括:In conjunction with the second aspect or the first possible implementation manner of the second aspect, the embodiment of the present application provides a third possible implementation manner of the second aspect, wherein the apparatus further includes:
第三确定模块,用于基于当前时间段内的结束时间点、该起始时间点以及预设阈值,确定匹配该起始时间点的临界时间点对应的时间长度;A third determination module, configured to determine the time length corresponding to the critical time point matching the start time point based on the end time point in the current time period, the start time point and the preset threshold;
第四确定模块,用于基于该起始时间点和所述时间长度,确定匹配该起始时间点的临界时间点。The fourth determining module is configured to determine a critical time point matching the starting time point based on the starting time point and the time length.
结合第二方面,本申请实施例提供了第二方面的第四种可能的实施方式,其中,所述第一确定模块,具体用于:In conjunction with the second aspect, the embodiment of the present application provides a fourth possible implementation manner of the second aspect, wherein the first determining module is specifically used for:
基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息;Determine the resource increment information corresponding to each time point based on the first pending orders corresponding to each time point in the first sub-time period;
从各个时间点分别对应的资源增量信息中,选取所述第一子时间段内的最大资源增量信息。From the resource increment information corresponding to each time point, the maximum resource increment information in the first sub-time period is selected.
结合第二方面的第四种可能的实施方式,本申请实施例提供了第二方面的第五种可能的实施方式,其中,所述第一确定模块,具体用于:In conjunction with the fourth possible implementation manner of the second aspect, the embodiment of the present application provides a fifth possible implementation manner of the second aspect, wherein the first determination module is specifically used for:
针对所述第一子时间段内的任一时间点,获取该时间点到所述起始时间点内的第一待处理订单,并在该时间点对所述第一待处理订单进行分单匹配处理,得到该时间点对应的第一资源增量信息;For any time point in the first sub-time period, obtain the first pending order from the time point to the starting time point, and divide the first pending order at this time point Matching processing to obtain the first resource increment information corresponding to the time point;
针对该时间点到所述起始时间点内的任一第一目标时间点,获取该第一目标时间点到前一个时间点内的第二待处理订单,并在该第一目标时间点对所述第二待处理订单进行分单匹配处理,得到该第一目标时间点对应的第二资源增量信息;其中,所述第一目标时间点包括该时间点;For any first target time point from the time point to the start time point, obtain the second pending order from the first target time point to the previous time point, and pair the order at the first target time point with The second to-be-processed order is divided and matched to obtain the second resource increment information corresponding to the first target time point; wherein, the first target time point includes the time point;
基于该时间点对应的所述第一资源增量信息和各个第一目标时间点对应的第二资源增量信息,确定该时间点对应的资源增量信息。Based on the first resource increment information corresponding to the time point and the second resource increment information corresponding to each first target time point, the resource increment information corresponding to the time point is determined.
结合第二方面,本申请实施例提供了第二方面的第六种可能的实施方式,其中,所述第二确定模块,具体用于:In conjunction with the second aspect, the embodiment of the present application provides a sixth possible implementation manner of the second aspect, wherein the second determining module is specifically used for:
获取该时间点到所述起始时间点内服务请求端发送的待处理订单,并在该时间点对所述待处理订单进行分单匹配处理,得到该时间点对应的第三资源增量信息;Obtain the pending orders sent by the service requester from this time point to the starting time point, and perform order split matching processing on the pending orders at this time point, and obtain the third resource increment information corresponding to this time point ;
针对该时间点到所述起始时间点内的任一第二目标时间点,获取该第二目标时间点到前一个时间点内的第三待处理订单,并在该第二目标时间点对所述第三待处理订单进行分单匹配处理,得到该第二目标时间点对应的第四资源增量信息;其中,所述第二目标时间点包括该时间点;For any second target time point from this time point to the starting time point, obtain the third pending order from the second target time point to the previous time point, and at the second target time point The third to-be-processed order is divided and matched to obtain fourth resource increment information corresponding to the second target time point; wherein, the second target time point includes the time point;
基于该时间点对应的所述第三资源增量信息和各个第二目标时间点分别对应的第四资源增量信息,确定该时间点对应的资源增量信息。Based on the third resource increment information corresponding to the time point and the fourth resource increment information corresponding to each second target time point, the resource increment information corresponding to the time point is determined.
结合第二方面的第六种可能的实施方式,本申请实施例提供了第二方面的第七种可能的实施方式,其中,所述第二确定模块,具体用于:In conjunction with the sixth possible implementation manner of the second aspect, the embodiment of the present application provides the seventh possible implementation manner of the second aspect, wherein the second determining module is specifically used for:
在该时间点选取与所述待处理订单相匹配的服务提供端;Select the service provider that matches the order to be processed at this point in time;
基于发送所述待处理订单的服务请求端对应的资源供给信息和所述服务提供端对应的资源消耗信息,确定在该时间点分单的第三资源增量信息。Based on the resource supply information corresponding to the service requester that sent the pending order and the resource consumption information corresponding to the service provider, the third resource increment information for order distribution at this time point is determined.
结合第二方面的第七种可能的实施方式,本申请实施例提供了第二方面的第八种可能的实施方式,其中,所述第二确定模块,具体用于:In conjunction with the seventh possible implementation manner of the second aspect, the embodiment of the present application provides the eighth possible implementation manner of the second aspect, wherein the second determining module is specifically used for:
在该时间点选取与所述待处理订单相匹配的处于空闲状态的服务提供端;At this point in time, select an idle service provider that matches the pending order;
或者,or,
在该时间点选取与所述待处理订单相匹配的处于服务状态的服务提供端。At this point in time, a service provider in a service state that matches the pending order is selected.
结合第二方面的第六种可能的实施方式,本申请实施例提供了第二方面的第九种可能的实施方式,其中,所述第二确定模块,具体用于:In conjunction with the sixth possible implementation manner of the second aspect, the embodiment of the present application provides the ninth possible implementation manner of the second aspect, wherein the second determining module is specifically used for:
确定各个第二目标时间点分别对应的第四资源增量信息的和值;determining the sum value of the fourth resource increment information corresponding to each second target time point respectively;
将该时间点对应的所述第三资源增量信息与确定的所述和值的差值,确定为该时间点对应的资源增量信息。The difference between the third resource increment information corresponding to the time point and the determined sum value is determined as the resource increment information corresponding to the time point.
第三方面,本申请实施例还提供了一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如第一方面任一项所述订单处理方法的步骤。In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium, and a bus, where the storage medium stores machine-readable instructions executable by the processor, and when the electronic device runs, The processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to execute the steps of the order processing method according to any one of the first aspects.
第四方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如第一方面任一项所述订单处理方法的步骤。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor when it is executed as described in any one of the first aspect. Describe the steps of the order processing method.
本申请实施例提供的一种订单处理方法、装置、电子设备及存储介质,基于当前时间段的第一子时间段中内的待处理订单,确定该第一子时间段内的最大资源增量信息,并决策第一子时间段不分单;上述第一子时间段为起始时间点到匹配起始时间点的临界时间点;针对第二子时间段内的各个时间点,该第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段,基于该各个时间点的资源增量信息与第一子时间段内的最大资源增量信息,监控第二子时间段内的分单时间点,并在监控到分单时间点时,在该分单时间点进行分单。这样,能够将更多相匹配的待处理订单进行分单处理,提高了平台的分单效率。An order processing method, device, electronic device, and storage medium provided by the embodiments of the present application determine, based on pending orders in a first sub-time period of the current time period, the maximum resource increment in the first sub-time period information, and decide that the first sub-time period is not divided into orders; the above-mentioned first sub-time period is the critical time point from the start time point to the matching start time point; for each time point in the second sub-time period, the second sub-time period The sub time period is the time period from the time point after the critical time point to the time point before the end time point in the current time period, based on the resource increment information at each time point and the maximum value in the first sub time period. Resource increment information, monitor the time point of order distribution in the second sub-time period, and when the time point of order distribution is monitored, the order will be distributed at the time point of order distribution. In this way, more matching pending orders can be processed separately, which improves the order distribution efficiency of the platform.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1示出了本申请实施例提供的一种服务系统的架构示意图;FIG. 1 shows a schematic diagram of the architecture of a service system provided by an embodiment of the present application;
图2示出了本申请实施例提供的一种订单处理方法的流程图;FIG. 2 shows a flowchart of an order processing method provided by an embodiment of the present application;
图3示出了本申请实施例提供的另一种订单处理方法的流程图;FIG. 3 shows a flowchart of another order processing method provided by an embodiment of the present application;
图4示出了本申请实施例提供的另一种订单处理方法的流程图;FIG. 4 shows a flowchart of another order processing method provided by an embodiment of the present application;
图5示出了本申请实施例提供的另一种订单处理方法的流程图;FIG. 5 shows a flowchart of another order processing method provided by an embodiment of the present application;
图6示出了本申请实施例提供的另一种订单处理方法的流程图;FIG. 6 shows a flowchart of another order processing method provided by an embodiment of the present application;
图7示出了本申请实施例提供的另一种订单处理方法的流程图;FIG. 7 shows a flowchart of another order processing method provided by an embodiment of the present application;
图8示出了本申请实施例提供的一种订单处理装置的结构示意图;FIG. 8 shows a schematic structural diagram of an order processing apparatus provided by an embodiment of the present application;
图9示出了本申请实施例提供的电子设备的结构示意图。FIG. 9 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应该理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. The drawings are only for the purpose of illustration and description, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented in accordance with some embodiments of the application. It should be understood that the operations of the flowcharts may be performed out of order and that steps without logical context may be performed in reverse order or concurrently. In addition, those skilled in the art can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart under the guidance of the content of the present application.
另外,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In addition, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
为了使得本领域技术人员能够使用本申请内容,结合特定应用场景“拼车订单处理”,给出以下实施方式。对于本领域技术人员来说,在不脱离本申请的精神和范围的情况下,可以将这里定义的一般原理应用于其他实施例和应用场景。虽然本申请主要围绕拼车订单处理进行描述,但是应该理解,这仅是一个示例性实施例。In order to enable those skilled in the art to use the contents of the present application, the following embodiments are given in combination with the specific application scenario "carpooling order processing". For those skilled in the art, the general principles defined herein may be applied to other embodiments and application scenarios without departing from the spirit and scope of the present application. While this application is primarily described in terms of ride-sharing order processing, it should be understood that this is only one example embodiment.
需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared later, but does not exclude the addition of other features.
本申请实施例中的术语“用户”、“乘客”、“请求方”、“服务人员”、“服务请求方”、“服务请求端”、“服务请求方终端”、“乘客终端”、“乘客端”、“客户”可互换使用,以指代可以请求或订购服务的个人、实体或工具。本申请中的术语“司机”、“服务提供方”、“服务提供端”、“司机端”和“司机终端”可互换使用,以指代可以提供服务的个人、实体或工具。The terms "user", "passenger", "requester", "service person", "service requester", "service requester", "service requester terminal", "passenger terminal", "service requester" in the embodiments of this application "Client" and "Client" are used interchangeably to refer to a person, entity, or instrument that can request or order services. The terms "driver", "service provider", "service provider", "driver terminal" and "driver terminal" in this application are used interchangeably to refer to a person, entity or tool that can provide a service.
图1是本申请一些实施例的服务系统100的框图。例如,服务系统100可以是用于诸如出租车、代驾服务、快车、拼车、公共汽车服务、驾驶员租赁、或班车服务之类的运输服务、或其任意组合的在线运输服务平台。服务系统100可以包括服务器110、网络120、服务请求端130、服务提供端140和数据库150中的一种或多种。FIG. 1 is a block diagram of a
在一些实施例中,服务器110可以是单个服务器,也可以是服务器组。服务器组可以是集中式的,也可以是分布式的(例如,服务器110可以是分布式系统)。在一些实施例中,服务器110相对于终端,可以是本地的、也可以是远程的。例如,服务器110可以经由网络120访问存储在服务请求端130、服务提供端140、或数据库150、或其任意组合中的信息和/或数据。作为另一示例,服务器110可以直接连接到服务请求端130、服务提供端140和数据库150中至少一个,以访问存储的信息和/或数据。在一些实施例中,服务器110可以在云平台上实现;仅作为示例,云平台可以包括私有云、公有云、混合云、社区云(community cloud)、分布式云、跨云(inter-cloud)、多云(multi-cloud)等,或者它们的任意组合。In some embodiments,
在一些实施例中,服务器110可以包括处理器。处理器可以处理与服务请求有关的信息和/或数据,以执行本申请中描述的一个或多个功能。例如,处理器可以基于从服务请求端130发送的服务请求中的当前位置信息来确定上述当前位置信息所属的目标区域内的各个上车点。在一些实施例中,处理器可以包括一个或多个处理核(例如,单核处理器(S)或多核处理器(S))。仅作为举例,处理器可以包括中央处理单元(Central Processing Unit,CPU)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用指令集处理器(Application Specific Instruction-set Processor,ASIP)、图形处理单元(Graphics Processing Unit,GPU)、物理处理单元(Physics Processing Unit,PPU)、数字信号处理器(Digital Signal Processor,DSP)、现场可编程门阵列(Field ProgrammableGate Array,FPGA)、可编程逻辑器件(Programmable Logic Device,PLD)、控制器、微控制器单元、简化指令集计算机(Reduced Instruction Set Computing,RISC)、或微处理器等,或其任意组合。In some embodiments,
网络120可以用于信息和/或数据的交换。在一些实施例中,服务系统100中的一个或多个组件(例如,服务器110,服务请求端130,服务提供端140和数据库150)可以向其他组件发送信息和/或数据。例如,服务器110可以经由网络120从服务请求端130获取服务请求。在一些实施例中,网络120可以是任何类型的有线或者无线网络,或者是他们的结合。仅作为示例,网络130可以包括有线网络、无线网络、光纤网络、远程通信网络、内联网、因特网、局域网(Local Area Network,LAN)、广域网(Wide Area Network,WAN)、无线局域网(Wireless Local Area Networks,WLAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,WAN)、公共电话交换网(Public Switched Telephone Network,PSTN)、蓝牙网络、ZigBee网络、或近场通信(Near Field Communication,NFC)网络等,或其任意组合。在一些实施例中,网络120可以包括一个或多个网络接入点。例如,网络120可以包括有线或无线网络接入点,例如基站和/或网络交换节点,服务系统100的一个或多个组件可以通过该接入点连接到网络120以交换数据和/或信息。The
在一些实施例中,服务请求端130可以包括移动设备、平板计算机、膝上型计算机、或机动车辆中的内置设备等,或其任意组合。在一些实施例中,移动设备可以包括可穿戴设备、智能移动设备、虚拟现实设备、或增强现实设备等,或其任意组合。在一些实施例中,服务请求端130可以是具有用于定位功能的设备。In some embodiments, the
数据库150可以存储数据和/或指令。在一些实施例中,数据库150可以存储从服务请求端130和/或服务提供端140获得的数据。在一些实施例中,数据库150可以存储在本申请实施例中描述的示例性方法的数据和/或指令。在一些实施例中,数据库150可以包括大容量存储器、可移动存储器、易失性读写存储器、或只读存储器(Read-Only Memory,ROM)等,或其任意组合。作为举例,大容量存储器可以包括磁盘、光盘、固态驱动器等;可移动存储器可包括闪存驱动器、软盘、光盘、存储卡、zip磁盘、磁带等;易失性读写存储器可以包括随机存取存储器(Random Access Memory,RAM);RAM可以包括动态RAM(Dynamic RandomAccess Memory,DRAM),双倍数据速率同步动态RAM(Double Date-Rate Synchronous RAM,DDR SDRAM);静态RAM(Static Random-Access Memory,SRAM),晶闸管RAM(Thyristor-Based Random Access Memory,T-RAM)和零电容器RAM(Zero-RAM)等。作为举例,ROM可以包括掩模ROM(Mask Read-OnlyMemory,MROM)、可编程ROM(Programmable Read-Only Memory,PROM)、可擦除可编程ROM(Programmable Erasable Read-only Memory,PEROM)、电可擦除可编程ROM(Electrically Erasable Programmable read only memory,EEPROM)、光盘ROM(CD-ROM)、以及数字通用磁盘ROM等。在一些实施例中,数据库150可以在云平台上实现。仅作为示例,云平台可以包括私有云、公有云、混合云、社区云、分布式云、跨云、多云或者其它类似的等,或其任意组合。
在一些实施例中,数据库150可以连接到网络120以与服务系统100中的一个或多个组件(例如,服务器110,服务请求端130、服务提供端140等)通信。服务系统100中的一个或多个组件可以经由网络120访问存储在数据库150中的数据或指令。在一些实施例中,数据库150可以直接连接到服务系统100中的一个或多个组件,或者,数据库150也可以是服务器110的一部分。In some embodiments,
基于上述服务系统100,本申请实施例提供了一种订单处理方法,所述订单处理方法可以应用于服务器110,如图2所示,所述方法包括以下步骤:Based on the
S201、基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息;其中,所述第一子时间段为当前时间段内起始时间点到匹配该起始时间点的临界时间点的时间段,且所述第一子时间段被配置为停止分单。S201. Determine the maximum resource increment information in the first sub-time period based on the pending order sent by the service requester in the first sub-time period of the current time period; wherein the first sub-time period is the current time The time period from the start time point in the segment to the critical time point matching the start time point, and the first sub-time period is configured to stop order splitting.
本申请实施例中,服务器中存储有预设的分单时间段;比如,预设的分单时间段为每天的0点到24点。作为一种实施方式,上述当前时间段为上述预设的分单时间段。作为另一种实施方式,服务器预先将预设的分单时间段划分为多个时间段,上述当前时间段为预设的分单时间段中任一时间段;这里,服务器按照固定时间长度将预设的分单时间段划分为多个时间段;比如,服务器按照60s的时间长度,将0点到24点划分为86400个时间段。In the embodiment of the present application, the server stores a preset order distribution time period; for example, the preset order distribution time period is from 0:00 to 24:00 every day. As an implementation manner, the above-mentioned current time period is the above-mentioned preset order-splitting time period. As another implementation, the server divides the preset order distribution time period into multiple time periods in advance, and the above-mentioned current time period is any one of the preset order distribution time periods; The preset order splitting time period is divided into multiple time periods; for example, the server divides 0:00 to 24:00 into 86400 time periods according to the time length of 60s.
在本申请实施例中,当前时间段包括起始时间点和匹配该起始时间点的临界时间点。将该起始时间点到匹配该起始时间点的临界时间点的时间段,确定为当前时间段内的第一子时间段。其中,第一子时间段预先被配置为停止分单,这里的停止分单指的是不会将分单匹配结果发送给相应的服务请求端。In this embodiment of the present application, the current time period includes a start time point and a critical time point matching the start time point. The time period from the starting time point to the critical time point matching the starting time point is determined as the first sub-time period in the current time period. The first sub-time period is pre-configured to stop order splitting, and the stop order splitting here means that the matching result of the split order will not be sent to the corresponding service requester.
作为一种实施方式,当前时间段为0s-60s,0s为起始时间点,匹配0s的临界时间点为22s。相应的,0-22s为第一子时间段,针对0-22s内来自服务请求端的待处理订单,服务器不对这些待处理订单进行分单处理,而是基于0-22s内的待处理订单,确定0-22s内的最大资源增量信息,以便基于该最大资源增量信息监控第二子时间段(即23s-59s)内的分单时间点。As an embodiment, the current time period is 0s-60s, 0s is the starting time point, and the critical time point for matching 0s is 22s. Correspondingly, 0-22s is the first sub-time period. For the pending orders from the service requester within 0-22s, the server does not process these pending orders separately, but determines based on the pending orders within 0-22s. Maximum resource increment information within 0-22s, so as to monitor the time point of order distribution within the second sub-time period (ie, 23s-59s) based on the maximum resource increment information.
S202、针对当前时间段的第二子时间段内的任一时间点,基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息;其中,所述第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段。S202, for any time point in the second sub-time period of the current time period, based on the pending order sent by the service requester from the time point to the starting time point, determine the resource increment information at the time point; The second sub-time period is a time period from a time point after the critical time point to a time point before the end time point in the current time period.
作为一种实施方式,当前时间段为0s-60s,0为起始时间点(也是初始分单时间点),60s为当前时间段内结束时间点,相应的,23s-59s为第二子时间段,第二子时间段包括23s、24s、25s……59s这多个时间点;针对23s、24s、25s……59s中的任一时间点(比如23s),服务器获取0~23s内的待处理订单,并基于获取的待处理订单,确定在23s分单对应的资源增量信息。As an embodiment, the current time period is 0s-60s, 0 is the starting time point (also the initial time point for order distribution), 60s is the ending time point in the current time period, and correspondingly, 23s-59s is the second sub-time segment, the second sub-time segment includes multiple time points such as 23s, 24s, 25s...59s; for any time point (such as 23s) in 23s, 24s, 25s...59s, the server obtains the waiting time within 0 to 23s. Process the order, and determine the resource increment information corresponding to the order split in 23s based on the obtained pending order.
如果23s不是分单时间点,针对24s,服务器则获取0~24s内的待处理订单,并基于获取的待处理订单,确定在24s分单对应的资源增量信息。基于同样的原理,服务器能够确定25s~59s中任一时间点对应的资源增量信息。If 23s is not the time point of order splitting, for 24s, the server obtains the pending orders within 0 to 24s, and determines the resource increment information corresponding to the order splitting in 24s based on the obtained pending orders. Based on the same principle, the server can determine the resource increment information corresponding to any time point between 25s and 59s.
S203、根据所述最大资源增量信息和所述第二子时间段内各个时间点的资源增量信息,监控所述第二子时间段内的分单时间点。S203. Monitor the time points for order distribution in the second sub-time period according to the maximum resource increment information and the resource increment information at each time point in the second sub-time period.
作为一种实施方式,针对23s,服务器在确定了23s分单对应的资源增量信息后,将该资源增量信息与0~22s对应的最大资源增量信息进行比较,如果该资源增量信息大于上述最大资源增量信息,则确定23s为分单时间点;如果该资源增量信息小于等于上述最大资源增量信息,则确定23s为非分单时间点。基于同样的原理,服务器能够确定24s~59s中任一时间点是否为分单时间点。As an embodiment, for 23s, after determining the resource increment information corresponding to the 23s order, the server compares the resource increment information with the maximum resource increment information corresponding to 0 to 22s, if the resource increment information If the value is greater than the above maximum resource increment information, 23s is determined as the time point for order splitting; if the resource increment information is less than or equal to the above maximum resource increment information, 23s is determined as the non-billing time point. Based on the same principle, the server can determine whether any time point from 24s to 59s is a time point for order splitting.
S204、当监控到所述第二子时间段内的分单时间点时,在该分单时间点对相应的待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端。S204. When monitoring the time point of order splitting within the second sub-time period, perform split order matching processing on the corresponding to-be-processed order at the order split time point, and send the obtained order split matching result to the corresponding service requester.
本申请实施例中,若服务器监控到23s为分单时间点,则在23s对0~23s内的待处理订单进行分单匹配处理,并将分单匹配结果发送给相应的服务请求端。其中,服务器在分单时间点对相应的待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端的过程即在分单时间点进行分单处理。In the embodiment of the present application, if the server monitors that 23s is the time point of order splitting, it performs splitting matching processing on the pending orders within 0-23s in 23s, and sends the matching result of splitting orders to the corresponding service requester. Wherein, the server performs order split matching processing on the corresponding pending orders at the time point of order splitting, and sends the obtained order split matching result to the corresponding service requester, that is, the process of performing split order processing at the time point of order splitting.
其中,上述分单匹配方法如下:服务器对上述待处理订单进行打包和匹配,即选取与上述待处理订单相匹配的服务提供端,并将选取的服务提供端的相关信息发送给匹配成功的待处理订单对应的服务请求端。Wherein, the above-mentioned order splitting matching method is as follows: the server packs and matches the above-mentioned pending orders, that is, selects the service provider that matches the above-mentioned pending order, and sends the relevant information of the selected service provider to the successfully matched pending order. The service requester corresponding to the order.
本申请实施例提供的一种订单处理方法,基于当前时间段的第一子时间段中内的待处理订单,确定该第一子时间段内的最大资源增量信息,并决策第一子时间段不分单;上述第一子时间段为起始时间点到匹配起始时间点的临界时间点;针对第二子时间段内的各个时间点,该第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段,基于该各个时间点的资源增量信息与第一子时间段内的最大资源增量信息,监控第二子时间段内的分单时间点,并在监控到分单时间点时,在该分单时间点进行分单。这样,能够将更多相匹配的待处理订单进行分单处理,提高了平台的分单效率。An order processing method provided by an embodiment of the present application determines, based on pending orders in a first sub-time period of the current time period, maximum resource increment information in the first sub-time period, and decides the first sub-time period The first sub-time period is the critical time point from the start time point to the matching start time point; for each time point in the second sub-time period, the second sub-time period is the critical time point The time period from the time point after the point to the time point before the end time point in the current time period, based on the resource increment information at each time point and the maximum resource increment information in the first sub-time period, monitor the second time period. The order splitting time point in the sub-time period, and when the order splitting time point is monitored, the order splitting time point is performed at the order splitting time point. In this way, more matching pending orders can be processed separately, which improves the order distribution efficiency of the platform.
进一步的,本申请实施例提供的订单处理方法,当监控到所述第二子时间段内的分单时间点时,所述方法还包括:Further, in the order processing method provided by the embodiment of the present application, when monitoring the time point of order splitting within the second sub-time period, the method further includes:
选取监控到的所述分单时间点作为新的起始时间点,返回执行基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息的步骤,直至得到所述第二子时间段内最后一个时间点的监控结果。Select the monitored order distribution time point as the new starting time point, return to execute the pending order sent by the service requester in the first sub-time based on the current time period, and determine the order within the first sub-time. The step of maximum resource increment information until the monitoring result of the last time point in the second sub-time period is obtained.
作为一种实施方式,服务器监控到23s为分单时间点,则在23s进行分单处理;此时,服务器选取23s作为新的起始时间点,并确定匹配23s的临界时间点为36s,相应的,23s~36s为新的第一子时间段,37s~59s为新的第二子时间段,23s~36s被配置为停止分单;针对23s~36s内来自服务请求端的待处理订单,服务器不对这些待处理订单进行分单处理,而是基于23s~36s内的待处理订单,确定23s~36s内的最大资源增量信息,以便基于该最大资源增量信息监控37s~59s内的分单时间点。As an embodiment, the server monitors that 23s is the time point for order splitting, and then performs order splitting processing at 23s; at this time, the server selects 23s as the new starting time point, and determines that the critical time point matching 23s is 36s, and the corresponding Yes, 23s-36s is the new first sub-time period, 37s-59s is the new second sub-time period, 23s-36s is configured to stop order distribution; for pending orders from the service requester within 23s-36s, the server These pending orders are not processed separately, but based on the pending orders within 23s to 36s, the maximum resource increment information within 23s to 36s is determined, so as to monitor the order split within 37s to 59s based on the maximum resource increment information point in time.
第二子时间段包括37s、38s、39s……59s这多个时间点;针对37s、38s、39s……59s中的任一时间点(比如37s),服务器获取23s~37s内的待处理订单,并基于获取的待处理订单,确定在37s分单对应的资源增量信息。The second sub-time period includes multiple time points such as 37s, 38s, 39s...59s; for any time point (such as 37s) in 37s, 38s, 39s...59s, the server obtains pending orders within 23s to 37s , and based on the obtained pending orders, determine the resource increment information corresponding to the order split in 37s.
服务器在确定了37s分单对应的资源增量信息后,将该资源增量信息与23s~36s对应的最大资源增量信息进行比较,如果该资源增量信息大于上述最大资源增量信息,则确定37s为分单时间点;如果该资源增量信息小于等于上述最大资源增量信息,则确定37s为非分单时间点。After determining the resource increment information corresponding to the 37s split order, the server compares the resource increment information with the maximum resource increment information corresponding to 23s to 36s. If the resource increment information is greater than the above maximum resource increment information, then Determine 37s as the time point for order distribution; if the resource increment information is less than or equal to the above-mentioned maximum resource increment information, determine 37s as the time point for non-bill distribution.
如果37s不是分单时间点,针对38s,服务器则获取23s~38s内的待处理订单,并基于获取的待处理订单,确定在38s分单对应的资源增量信息,并将该资源增量信息与23s~36s对应的最大资源增量信息进行比较,如果该资源增量信息大于上述最大资源增量信息,则确定38s为分单时间点;如果该资增量信息小于等于上述最大资源增量信息,则确定38s为非分单时间点。If 37s is not the time point of order splitting, for 38s, the server obtains pending orders within 23s to 38s, and based on the obtained pending orders, determines the resource increment information corresponding to the order split at 38s, and stores the resource increment information. Compare with the maximum resource increment information corresponding to 23s to 36s. If the resource increment information is greater than the above-mentioned maximum resource increment information, determine 38s as the time point of the order split; if the resource increment information is less than or equal to the above-mentioned maximum resource increment information, then it is determined that 38s is a non-single time point.
基于37s和38s同样的原理,服务器能够确定39s~59s中任一时间点对应的资源增量信息,并基于确定的资源增量信息监控39s~59s中任一时间点是否为分单时间点。Based on the same principles as 37s and 38s, the server can determine the resource increment information corresponding to any time point in 39s to 59s, and monitor whether any time point in 39s to 59s is a time point for order splitting based on the determined resource increment information.
进一步的,如图3所示,本申请实施例中提供的订单处理方法中,针对任一起始时间点,通过以下方法确定匹配该起始时间点的临界时间点:Further, as shown in FIG. 3 , in the order processing method provided in the embodiment of the present application, for any starting time point, the critical time point matching the starting time point is determined by the following method:
S301、基于当前时间段内的结束时间点、该起始时间点以及预设阈值,确定匹配该起始时间点的临界时间点对应的时间长度。S301. Based on the end time point in the current time period, the start time point, and a preset threshold, determine the time length corresponding to the critical time point that matches the start time point.
作为一种实施方式,服务器按照以下公式计算匹配该起始时间点的临界时间点对应的时间长度:As an embodiment, the server calculates the time length corresponding to the critical time point matching the starting time point according to the following formula:
匹配该起始时间点的临界时间点对应的时间长度=(当前时间段内结束时间点-该起始时间点)×预设阈值。The time length corresponding to the critical time point matching the starting time point=(the ending time point in the current time period−the starting time point)×the preset threshold.
作为一种实施方式,服务器基于37法则配置上述预设阈值,相应的,上述阈值为0.37。As an implementation manner, the server configures the above-mentioned preset threshold based on the rule of 37, and correspondingly, the above-mentioned threshold is 0.37.
比如,起始时间点为0,当前时间段内的结束时间点为60s,上述时间长度=(60s-0)×0.37=22.2s。For example, the start time point is 0, the end time point in the current time period is 60s, and the above time length=(60s-0)×0.37=22.2s.
再比如,起始时间点为23s,当前时间段内结束时间点为60s,上述时间长度=(60s-23s)×0.37=13.69s。For another example, the start time point is 23s, the end time point in the current time period is 60s, and the above time length=(60s-23s)×0.37=13.69s.
S302、基于该起始时间点和所述时间长度,确定匹配该起始时间点的临界时间点。S302. Based on the starting time point and the time length, determine a critical time point matching the starting time point.
本申请实施例中,当匹配该起始时间点的临界时间点对应的时间长度带有小数时,对带有小数的时间长度进行取整处理。这里的取整处理包括:舍弃小数,或者,对小数进行进位。In this embodiment of the present application, when the time length corresponding to the critical time point matching the starting time point has a decimal point, the time length with the decimal point is rounded up. The rounding processing here includes: discarding decimals, or carrying decimals.
比如,时间长度22.2s经过取整处理,可以是22,也可以是23;13.69s经过取整处理,可以是13,也可以是14。本申请实施例中,以22.2s经过取整处理后为22,以13.69s经过取整处理为13为例进行说明。For example, the time length of 22.2s is rounded, and it can be 22 or 23; 13.69s is rounded, and it can be 13 or 14. In the embodiment of the present application, 22.2s is rounded to be 22, and 13.69s is rounded to 13 as an example for description.
作为一种实施方式,起始时间点为0,时间长度为22,确定匹配该起始时间点的临界时间点为0+22s=22s。As an embodiment, the starting time point is 0, the time length is 22, and the critical time point determined to match the starting time point is 0+22s=22s.
作为一种实施方式,起始时间点为23s,时间长度为13s,确定匹配该起始时间点的临界时间点为23s+13s=36s。As an embodiment, the start time point is 23s, the time length is 13s, and the critical time point determined to match the start time point is 23s+13s=36s.
进一步的,如图4所示,本申请实施例提供的订单处理方法,所述结束时间点被配置为所述分单时间点;在将得到的分单匹配结果发送给相应的服务请求端之后,所述方法还包括:Further, as shown in FIG. 4 , in the order processing method provided by the embodiment of the present application, the end time point is configured as the order distribution time point; after the obtained order distribution matching result is sent to the corresponding service requester , the method also includes:
S401、获取所述结束时间点到所述结束时间点的前一个分单时间点内的待处理订单。S401. Obtain orders to be processed within the time point of the end time point to the previous order split time point of the end time point.
S402、在所述结束时间点对获取的所述待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端。S402. Perform a split order matching process on the acquired order to be processed at the end time point, and send the obtained order split matching result to a corresponding service requester.
结合步骤401~步骤402,本申请实施例中,服务器预先设置当前时间段内的结束时间点(即60s)为分单时间点。当服务器完成第0~59s的各个时间点的监控后,若当前时刻到达60s,则服务器进行分单处理。Combining steps 401 to 402, in this embodiment of the present application, the server presets the end time point (ie, 60s) within the current time period as the time point for order splitting. After the server completes monitoring at each time point from 0 to 59 s, if the current time reaches 60 s, the server performs order split processing.
具体分单过程如下:服务器确定当前时刻的前一个分单时间点(比如为58s),服务器获取58s~60s内的待处理订单,对这些待处理订单进行分单匹配处理,并将得到的分单匹配结果发送给相应的服务请求端。The specific order distribution process is as follows: the server determines the previous order distribution time point at the current moment (for example, 58s), the server obtains the pending orders within 58s to 60s, performs order matching processing on these pending orders, and compares the obtained points The single matching result is sent to the corresponding service requester.
进一步的,如图5所示,本申请实施例提供的订单处理方法,所述基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息,包括:Further, as shown in FIG. 5 , in the order processing method provided by the embodiment of the present application, the order is determined based on the pending order sent by the service requester in the first sub-time period of the current time period. maximum resource increment information, including:
S501、基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息。S501. Determine resource increment information corresponding to each time point based on the first pending orders corresponding to each time point in the first sub-time period.
本申请实施例中,针对第一子时间段内的任一时间点,该时间点对应的第一待处理订单为:该时间点到第一子时间段的起始时间点内的所有待处理订单。基于在该时间点对相对应的第一待处理订单的分单匹配结果,以及,第一子时间段内起始时间点到该时间点对应时间段中各个第一目标时间点均进行分单匹配的分单处理结果,确定该时间点对应的资源增量信息。In this embodiment of the present application, for any time point within the first sub-time period, the first pending order corresponding to the time point is: all pending orders from the time point to the start time point of the first sub-time period Order. Based on the matching result of order splitting for the corresponding first pending order at this time point, and the order splitting is performed at each first target time point in the time period from the starting time point in the first sub-time period to the time point corresponding to the time point The matching order splitting processing result determines the resource increment information corresponding to the time point.
S502、从各个时间点分别对应的资源增量信息中,选取所述第一子时间段内的最大资源增量信息。S502. From the resource increment information corresponding to each time point, select the maximum resource increment information in the first sub-time period.
本申请实施例中,服务器将第一子时间段内的各个时间点分别对应的资源增量信息进行比较,并根据比较结果从各个资源增量信息中,选取第一子时间段内的最大资源增量信息。In this embodiment of the present application, the server compares the resource increment information corresponding to each time point in the first sub-time period, and selects the largest resource in the first sub-time period from the resource increment information according to the comparison result. Incremental information.
进一步的,如图6所述,本申请实施例提供的订单处理方法中,所述基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息,包括:Further, as shown in FIG. 6 , in the order processing method provided by the embodiment of the present application, it is determined that each time point corresponds to the first order to be processed based on the first order to be processed corresponding to each time point in the first sub-time period. resource increment information, including:
S601、针对所述第一子时间段内的任一时间点,获取该时间点到所述起始时间点内的第一待处理订单,并在该时间点对所述第一待处理订单进行分单匹配处理,得到该时间点对应的第一资源增量信息。S601. For any time point in the first sub-time period, acquire the first pending order from the time point to the starting time point, and perform the first pending order at this time point. The single-order matching process is performed to obtain the first resource increment information corresponding to the time point.
作为一种实施方式,上述分单匹配处理包括:在该时间点选取与所述第一待处理订单相匹配的服务提供端;基于发送所述待处理订单的服务请求端对应的资源供给信息和上述服务提供端对应的资源消耗信息,确定在该时间点分单的第一资源增量信息。As an embodiment, the above-mentioned order splitting matching processing includes: selecting a service provider that matches the first order to be processed at this point in time; based on the resource supply information and The resource consumption information corresponding to the above-mentioned service provider determines the first resource increment information to be ordered at this time point.
比如,第一子时间段为0~22s,起始时间点为0,针对第一子时间段0~22s的第二个时间点2s,获取0s到2s内的第一待处理订单(包括待处理订单1、待处理订单2和待处理订单3);在1s这个时间点选取与待处理订单1和待处理订单2相匹配的服务提供端1,选取与待处理订单3相匹配的服务提供端2;然后,服务器确定发送待处理订单1的服务请求端1、发送待处理订单2的服务请求端2和发送待处理订单3的服务请求端3分别对应的资源供给信息(这里的资源供给信息可以是上述服务请求端的应付费用)的第一和值;服务器确定服务提供端1和服务提供端2分别对应的资源消耗信息(这里的资源消耗信息可以是上述服务提供端的应收费用)的第二和值;服务器将第一和值和第二和值的差值,确定为在2s分单时的第一资源增量信息。For example, the first sub-time period is 0 to 22 s, and the starting time point is 0. For the second time point 2 s of the first sub-time period 0 to 22 s, the first pending order (including pending orders) within 0 s to 2 s is obtained. Process order 1, pending order 2 and pending order 3); at the time point of 1s, select the service provider 1 that matches the pending order 1 and pending order 2, and select the service provider that matches the pending order 3 Then, the server determines the resource supply information corresponding to the service requester 1 that sends the pending order 1, the service requester 2 that sends the pending order 2, and the service requester 3 that sends the pending order 3 (resource supply here). The information can be the first sum value of the above-mentioned service requester's payable fee); the server determines the resource consumption information corresponding to the service provider 1 and the service provider 2 respectively (the resource consumption information here can be the above-mentioned service provider's payable fee) of The second sum value; the server determines the difference between the first sum value and the second sum value as the first resource increment information when the order is divided in 2s.
基于同理的原理,服务器能够确定3s~22s中任一时间点分单时的第一资源增量信息。Based on the same principle, the server can determine the first resource increment information when the order is distributed at any point in time from 3s to 22s.
S602、针对该时间点到所述起始时间点内的任一第一目标时间点,获取该第一目标时间点到前一个时间点内的第二待处理订单,并在该第一目标时间点对所述第二待处理订单进行分单匹配处理,得到该第一目标时间点对应的第二资源增量信息;其中,所述第一目标时间点包括该时间点。S602. For any first target time point from the time point to the start time point, obtain the second pending order from the first target time point to the previous time point, and at the first target time point The second to-be-processed order is divided and matched to obtain the second resource increment information corresponding to the first target time point; wherein, the first target time point includes the time point.
作为一种实施方式,起始时间点(0s)与该时间点(即2s)之间包括两个第一目标时间点1s和2s。针对第一个第一目标时间点1s,获取0s到1s的内的第二待处理订单(包括待处理订单1),在1s对获取的待处理订单1进行分单匹配处理。具体的分单匹配处理包括:选取与待处理订单1相匹配的服务提供端1,并确定发送待处理订单1的服务请求端1对应的资源供给信息(这里的资源供给信息可以是服务请求端1的应付费用)和服务提供端1对应的资源消耗信息(这里的资源消耗信息可以是服务提供端1的应收费用),将资源供给信息与资源消耗信息的差值,确定为在第一目标时间点1s分单时的第二资源增量信息。As an embodiment, two first target time points 1s and 2s are included between the start time point (0s) and the time point (ie 2s). For the first first target time point 1s, acquire the second pending orders (including pending order 1) within 0s to 1s, and perform order split matching processing on the acquired pending order 1 at 1s. The specific order split matching process includes: selecting the service provider 1 that matches the pending order 1, and determining the resource supply information corresponding to the service requester 1 that sends the pending order 1 (the resource supply information here can be the service requester 1) and the resource consumption information corresponding to the service provider 1 (the resource consumption information here can be the payable fee of the service provider 1), and determine the difference between the resource supply information and the resource consumption information as the first The second resource increment information when the order is divided at the target time point 1s.
同理,针对第一目标时间点2s,获取1s到2s的内的第二待处理订单(包括待处理订单3),在2s对获取的待处理订单3进行分单匹配处理,得到在2s分单时的第二资源增量信息。In the same way, for the first target time point 2s, obtain the second pending order (including pending order 3) within 1s to 2s, and perform order matching processing on the obtained pending order 3 in 2s, and obtain the score at 2s. Single-hour second resource increment information.
同理,服务器还能够得到3s~22s中任一第一目标时间点分单匹配对应的第二资源增量信息。Similarly, the server can also obtain the second resource increment information corresponding to the order split matching at any first target time point in 3s to 22s.
S603、基于该时间点对应的所述第一资源增量信息和各个第一目标时间点对应的第二资源增量信息,确定该时间点对应的资源增量信息。S603. Determine resource increment information corresponding to the time point based on the first resource increment information corresponding to the time point and the second resource increment information corresponding to each first target time point.
作为一种实施方式,服务器确定各个第一目标时间点分别对应的第二资源增量信息的和值;将该时间点对应的所述第一资源增量信息与确定的所述和值的差值,确定为该时间点对应的资源增量信息。As an implementation manner, the server determines the sum value of the second resource increment information corresponding to each first target time point; the difference between the first resource increment information corresponding to the time point and the determined sum value The value is determined as the resource increment information corresponding to this time point.
比如,服务器计算1s分单时的第二资源增量信息与2s分单时的第二资源增量信息的和值,再计算2s分单时的第一资源增量信息与上述和值的差值,作为2s分单时的资源增量信息。For example, the server calculates the sum of the second resource increment information when the order is distributed in 1s and the second resource increment information when the order is distributed in 2s, and then calculates the difference between the first resource increment information in the 2s order and the above sum. The value is used as the resource increment information when the order is distributed in 2s.
进一步的,如图7所示,本申请实施例提供的订单处理方法中,所述基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息,包括:Further, as shown in FIG. 7 , in the order processing method provided by the embodiment of the present application, the resource increase at this time point is determined based on the pending order sent by the service requester from the time point to the starting time point. volume information, including:
S701、获取该时间点到所述起始时间点内服务请求端发送的待处理订单,并在该时间点对所述待处理订单进行分单匹配处理,得到该时间点对应的第三资源增量信息。S701. Acquire the pending order sent by the service requester from the time point to the starting time point, and perform order split matching processing on the pending order at this time point, and obtain the third resource increase corresponding to the time point. quantity information.
作为一种实施方式,23s-59s为第二子时间段,23s之前没有分单,0为初始分单时间点,针对第二子时间段中的第一个时间点(23s),服务器获取0~23s内的待处理订单,并在23s时,对获取的待处理订单进行分单匹配处理。As an embodiment, 23s-59s is the second sub-time period, there is no order distribution before 23s, 0 is the initial time point of order distribution, and for the first time point (23s) in the second sub-time period, the server obtains 0 ~23s pending orders, and in 23s, the obtained pending orders will be matched by order splitting.
具体分单匹配方式如下:在该时间点(即23s)选取与待处理订单相匹配的服务提供端;基于发送待处理订单的服务请求端对应的资源供给信息和匹配待处理订单的服务提供端对应的资源消耗信息,确定在该时间点(即23s)分单的第三资源增量信息。The specific order matching method is as follows: at this point in time (ie 23s), select the service provider that matches the pending order; based on the resource supply information corresponding to the service requester sending the pending order and the service provider matching the pending order For the corresponding resource consumption information, determine the third resource increment information to be ordered at this time point (ie, 23s).
同理,服务器能够确定24s~59s中任一时间点分单时的第三资源增量信息。Similarly, the server can determine the third resource increment information when the order is distributed at any point in time from 24s to 59s.
S702、针对该时间点到所述起始时间点内的任一第二目标时间点,获取该第二目标时间点到前一个时间点内的第三待处理订单,并在该第二目标时间点对所述第三待处理订单进行分单匹配处理,得到该第二目标时间点对应的第四资源增量信息;其中,所述第二目标时间点包括该时间点。S702. For any second target time point from the time point to the start time point, obtain the third pending order from the second target time point to the previous time point, and at the second target time point The third to-be-processed order is divided and matched to obtain the fourth resource increment information corresponding to the second target time point; wherein, the second target time point includes the time point.
作为一种实施方式,该时间点(23s)与上一次分单时间点(即0)之间包括23个第二目标时间点1s、2s……23s。针对第一个第二目标时间点1s,获取0到1s的内的第三待处理订单,在1s对获取的第三待处理订单进行分单匹配处理,并基于分单匹配处理结果,确定1s对应的第四资源增量信息。As an embodiment, 23 second target time points 1s, 2s... 23s are included between the time point (23s) and the last time point (ie, 0) of the order distribution. For the first second target time point 1s, obtain the third pending order within 0 to 1s, perform order split matching processing on the acquired third pending order at 1s, and determine 1s based on the result of the split order matching processing Corresponding fourth resource increment information.
具体的分单匹配处理包括:在1s这个时间点选取与第三待处理订单相匹配的服务提供端;然后,服务器确定发送待处理订单的服务请求端对应的资源供给信息(这里的资源供给信息可以是上述服务请求端的应付费用)和服务提供端对应的资源消耗信息(这里的资源消耗信息可以是上述服务提供端的应收费用),将资源供给信息与资源消耗信息的差值,确定为在1s对应的第四资源增量信息。The specific order split matching process includes: selecting the service provider that matches the third pending order at the time point of 1s; then, the server determines the resource supply information corresponding to the service requester that sends the pending order (the resource supply information here It can be the payable fee of the above-mentioned service requester) and the resource consumption information corresponding to the service provider (the resource consumption information here can be the payable fee of the above-mentioned service provider), and the difference between the resource supply information and the resource consumption information is determined as the The fourth resource increment information corresponding to 1s.
同理,服务器依次确定第二个第二目标时间点(2s)对应的第四资源增量信息、第三个第二目标时间点(3s)对应的第四资源增量信息……第二十三个第二目标时间点(23s)对应的第四资源增量信息。Similarly, the server sequentially determines the fourth resource increment information corresponding to the second second target time point (2s), the fourth resource increment information corresponding to the third second target time point (3s)... 20 Fourth resource increment information corresponding to the three second target time points (23s).
S703、基于该时间点对应的所述第三资源增量信息和各个第二目标时间点分别对应的第四资源增量信息,确定该时间点对应的资源增量信息。S703. Determine resource increment information corresponding to the time point based on the third resource increment information corresponding to the time point and the fourth resource increment information corresponding to each second target time point respectively.
作为一种实施方式,服务器计算23s分单时的第三资源增量信息与1s对应的第四资源增量信息的差值,在计算该差值与2s对应的第四资源增量信息的差值,在计算该差值与3s对应的第四资源增量信息的差值…直至计算上一次得到的差值与23s对应的第四资源增量信息的差值,作为23s对应的资源增量信息。As an implementation manner, the server calculates the difference between the third resource increment information when the order is distributed in 23s and the fourth resource increment information corresponding to 1s, and then calculates the difference between the difference and the fourth resource increment information corresponding to 2s. value, after calculating the difference between the difference and the fourth resource increment information corresponding to 3s...until the difference between the difference obtained last time and the fourth resource increment information corresponding to 23s is calculated as the resource increment corresponding to 23s information.
作为另一种实施方式,服务器确定各个第二目标时间点分别对应的第四资源增量信息的和值;将该时间点对应的所述第三资源增量信息与确定的所述和值的差值,确定为该时间点对应的资源增量信息。As another implementation manner, the server determines a sum value of the fourth resource increment information corresponding to each second target time point respectively; the third resource increment information corresponding to the time point and the determined sum value are obtained The difference is determined as the resource increment information corresponding to the time point.
比如,服务器计算1s对应的第四资源增量信息、2s对应的第四资源增量信息……23s对应的第四资源增量信息的和值,在计算23s对应的第三资源增量信息与上述和值的差值,作为该23s对应的资源增量信息。For example, the server calculates the fourth resource increment information corresponding to 1s, the fourth resource increment information corresponding to 2s... 23s corresponds to the sum of the fourth resource increment information, and then calculates the third resource increment information corresponding to 23s and The difference between the above sum values is used as the resource increment information corresponding to the 23s.
基于同样的原理,服务器能够计算24s对应的资源增量信息、25s对应的资源增量信息……59s对应的资源增量信息。Based on the same principle, the server can calculate the resource increment information corresponding to 24s, the resource increment information corresponding to 25s, and the resource increment information corresponding to 59s.
实际的拼车订单处理过程中,包括行中拼的情况和非行中拼的情况。相应的,在未考虑到行中拼的情况时,在该时间点选取与所述待处理订单相匹配的服务提供端,包括:在该时间点选取与所述待处理订单相匹配的处于空闲状态的服务提供端。In the actual process of carpooling order processing, it includes the situation of in-line carpooling and the situation of non-in-line carpooling. Correspondingly, selecting a service provider that matches the order to be processed at this time point includes: selecting a service provider that matches the order to be processed and is idle at this time point. Status service provider.
相应的,在考虑到行中拼的情况时,在该时间点选取与所述待处理订单相匹配的服务提供端,包括:在该时间点选取与所述待处理订单相匹配的处于服务状态的服务提供端。Correspondingly, when taking into account the situation of splicing in the line, selecting a service provider that matches the order to be processed at this time point includes: selecting a service provider that matches the order to be processed at this time point and is in a service state. service provider.
本申请实施例提供的一种订单处理方法,基于当前时间段的第一子时间段中内的待处理订单,确定该第一子时间段内的最大资源增量信息,并决策第一子时间段不分单;上述第一子时间段为起始时间点到匹配起始时间点的临界时间点;针对第二子时间段内的各个时间点,该第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段,基于该各个时间点的资源增量信息与第一子时间段内的最大资源增量信息,监控第二子时间段内的分单时间点,并在监控到分单时间点时,在该分单时间点进行分单。这样,能够将更多相匹配的待处理订单进行分单处理,提高了平台的分单效率。An order processing method provided by an embodiment of the present application determines, based on pending orders in a first sub-time period of the current time period, the maximum resource increment information in the first sub-time period, and decides the first sub-time period The first sub-time period is the critical time point from the start time point to the matching start time point; for each time point in the second sub-time period, the second sub-time period is the critical time point From the time point after the point to the time point before the end time point in the current time period, based on the resource increment information at each time point and the maximum resource increment information in the first sub-time period, monitor the second time period. The time point of order splitting within the sub-time period, and when the time point of order splitting is monitored, the order splitting will be performed at the time point of order splitting. In this way, more matching pending orders can be processed separately, which improves the order distribution efficiency of the platform.
图8是示出本申请的一些实施例的订单处理装置的框图,该订单处理装置实现的功能对应上述方法执行的步骤。该装置可以理解为上述服务器,或服务器的处理器,也可以理解为独立于上述服务器或处理器之外的在服务器控制下实现本申请功能的组件,如图8所示,所述订单处理装置可以包括:FIG. 8 is a block diagram illustrating an order processing apparatus according to some embodiments of the present application, and the functions implemented by the order processing apparatus correspond to the steps performed by the above method. The device can be understood as the above-mentioned server, or the processor of the server, and can also be understood as a component independent of the above-mentioned server or processor that implements the functions of the application under the control of the server. As shown in FIG. 8, the order processing device Can include:
第一确定模块801,用于基于当前时间段的第一子时间段内服务请求端发送的待处理订单,确定所述第一子时间段内的最大资源增量信息;其中,所述第一子时间段为当前时间段内起始时间点到匹配该起始时间点的临界时间点的时间段,且所述第一子时间段被配置为停止分单;The
第二确定模块802,用于针对当前时间段的第二子时间段内的任一时间点,基于该时间点到所述起始时间点内服务请求端发送的待处理订单,确定该时间点的资源增量信息;其中,所述第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段;The
监控模块803,用于根据所述最大资源增量信息和所述第二子时间段内各个时间点的资源增量信息,监控所述第二子时间段内的分单时间点;A
第一分单匹配模块804,用于当监控到所述第二子时间段内的分单时间点时,在该分单时间点对相应的待处理订单进行分单匹配处理;The first order
第一发送模块805,用于将得到的分单匹配结果发送给相应的服务请求端。The
进一步的,本申请实施例提供的订单处理装置中,所述装置还包括:Further, in the order processing device provided by the embodiment of the present application, the device further includes:
循环模块,用于选取监控到的所述分单时间点作为新的起始时间点,将所述新的起始时间点通知第一确定模块801,以便第一确定模块801、第二确定模块802和监控模块803运行,直至得到所述第二子时间段内最后一个时间点的监控结果。The circulation module is used to select the monitored time point of order splitting as a new start time point, and notify the
进一步的,本申请实施例提供的订单处理装置中,所述结束时间点被配置为所述分单时间点;所述装置还包括:Further, in the order processing device provided in the embodiment of the present application, the end time point is configured as the order splitting time point; the device further includes:
获取模块,用于获取所述结束时间点到所述结束时间点的前一个分单时间点内的待处理订单;an acquisition module, used to acquire the pending orders within the previous order split time point from the end time point to the end time point;
第二分单匹配模块,用于在所述结束时间点对获取的所述待处理订单进行分单匹配处理;The second order split matching module is used to perform split order matching processing on the obtained order to be processed at the end time point;
第二发送模块,用于将得到的分单匹配结果发送给相应的服务请求端。The second sending module is used for sending the obtained order split matching result to the corresponding service requester.
进一步的,本申请实施例提供的订单处理装置中,所述装置还包括:Further, in the order processing device provided by the embodiment of the present application, the device further includes:
第三确定模块,用于基于当前时间段内的结束时间点、该起始时间点以及预设阈值,确定匹配该起始时间点的临界时间点对应的时间长度;A third determination module, configured to determine the time length corresponding to the critical time point matching the start time point based on the end time point in the current time period, the start time point and the preset threshold;
第四确定模块,用于基于该起始时间点和所述时间长度,确定匹配该起始时间点的临界时间点。The fourth determining module is configured to determine a critical time point matching the starting time point based on the starting time point and the time length.
进一步的,本申请实施例提供的订单处理装置中,第一确定模块801,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
基于所述第一子时间段内的各个时间点分别对应的第一待处理订单,确定各个时间点分别对应的资源增量信息;Determine the resource increment information corresponding to each time point based on the first pending orders corresponding to each time point in the first sub-time period;
从各个时间点分别对应的资源增量信息中,选取所述第一子时间段内的最大资源增量信息。From the resource increment information corresponding to each time point, the maximum resource increment information in the first sub-time period is selected.
进一步的,本申请实施例提供的订单处理装置中,第一确定模块801,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
针对所述第一子时间段内的任一时间点,获取该时间点到所述起始时间点内的第一待处理订单,并在该时间点对所述第一待处理订单进行分单匹配处理,得到该时间点对应的第一资源增量信息;For any time point in the first sub-time period, obtain the first pending order from the time point to the starting time point, and divide the first pending order at this time point Matching processing to obtain the first resource increment information corresponding to the time point;
针对该时间点到所述起始时间点内的任一第一目标时间点,获取该第一目标时间点到前一个时间点内的第二待处理订单,并在该第一目标时间点对所述第二待处理订单进行分单匹配处理,得到该第一目标时间点对应的第二资源增量信息;其中,所述第一目标时间点包括该时间点;For any first target time point from the time point to the start time point, obtain the second pending order from the first target time point to the previous time point, and pair the order at the first target time point with The second to-be-processed order is divided and matched to obtain the second resource increment information corresponding to the first target time point; wherein, the first target time point includes the time point;
基于该时间点对应的所述第一资源增量信息和各个第一目标时间点对应的第二资源增量信息,确定该时间点对应的资源增量信息。Based on the first resource increment information corresponding to the time point and the second resource increment information corresponding to each first target time point, the resource increment information corresponding to the time point is determined.
进一步的,本申请实施例提供的订单处理装置中,第二确定模块802,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
获取该时间点到所述起始时间点内服务请求端发送的待处理订单,并在该时间点对所述待处理订单进行分单匹配处理,得到该时间点对应的第三资源增量信息;Obtain the pending orders sent by the service requester from this time point to the starting time point, and perform order split matching processing on the pending orders at this time point, and obtain the third resource increment information corresponding to this time point ;
针对该时间点到所述起始时间点内的任一第二目标时间点,获取该第二目标时间点到前一个时间点内的第三待处理订单,并在该第二目标时间点对所述第三待处理订单进行分单匹配处理,得到该第二目标时间点对应的第四资源增量信息;其中,所述第二目标时间点包括该时间点;For any second target time point from this time point to the starting time point, obtain the third pending order from the second target time point to the previous time point, and at the second target time point The third to-be-processed order is divided and matched to obtain fourth resource increment information corresponding to the second target time point; wherein, the second target time point includes the time point;
基于该时间点对应的所述第三资源增量信息和各个第二目标时间点分别对应的第四资源增量信息,确定该时间点对应的资源增量信息。Based on the third resource increment information corresponding to the time point and the fourth resource increment information corresponding to each second target time point, the resource increment information corresponding to the time point is determined.
进一步的,本申请实施例提供的订单处理装置中,第二确定模块802,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
在该时间点选取与所述待处理订单相匹配的服务提供端;Select the service provider that matches the order to be processed at this point in time;
基于发送所述待处理订单的服务请求端对应的资源供给信息和所述服务提供端对应的资源消耗信息,确定在该时间点分单的第三资源增量信息。Based on the resource supply information corresponding to the service requester that sent the pending order and the resource consumption information corresponding to the service provider, the third resource increment information for order distribution at this time point is determined.
进一步的,本申请实施例提供的订单处理装置中,第二确定模块802,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
在该时间点选取与所述待处理订单相匹配的处于空闲状态的服务提供端;At this point in time, select an idle service provider that matches the pending order;
或者,or,
在该时间点选取与所述待处理订单相匹配的处于服务状态的服务提供端。At this point in time, a service provider in a service state that matches the pending order is selected.
进一步的,本申请实施例提供的订单处理装置中,第二确定模块802,具体用于:Further, in the order processing apparatus provided by the embodiment of the present application, the
确定各个第二目标时间点分别对应的第四资源增量信息的和值;determining the sum value of the fourth resource increment information corresponding to each second target time point respectively;
将该时间点对应的所述第三资源增量信息与确定的所述和值的差值,确定为该时间点对应的资源增量信息。The difference between the third resource increment information corresponding to the time point and the determined sum value is determined as the resource increment information corresponding to the time point.
本申请实施例提供的一种订单处理装置,基于当前时间段的第一子时间段中内的待处理订单,确定该第一子时间段内的最大资源增量信息,并决策第一子时间段不分单;上述第一子时间段为起始时间点到匹配起始时间点的临界时间点;针对第二子时间段内的各个时间点,该第二子时间段为所述临界时间点的后一个时间点到当前时间段内结束时间点的前一个时间点的时间段,基于该各个时间点的资源增量信息与第一子时间段内的最大资源增量信息,监控第二子时间段内的分单时间点,并在监控到分单时间点时,在该分单时间点进行分单。这样,能够将更多相匹配的待处理订单进行分单处理,提高了平台的分单效率。An order processing apparatus provided by an embodiment of the present application determines, based on pending orders in a first sub-time period of a current time period, maximum resource increment information in the first sub-time period, and decides the first sub-time period The first sub-time period is the critical time point from the start time point to the matching start time point; for each time point in the second sub-time period, the second sub-time period is the critical time point From the time point after the point to the time point before the end time point in the current time period, based on the resource increment information at each time point and the maximum resource increment information in the first sub-time period, monitor the second time period. The time point of order splitting within the sub-time period, and when the time point of order splitting is monitored, the order splitting will be performed at the time point of order splitting. In this way, more matching pending orders can be processed separately, which improves the order distribution efficiency of the platform.
如图9所示,本申请实施例提供的一种电子设备900,包括:处理器901、存储器902和总线,所述存储器902存储有所述处理器901可执行的机器可读指令,当电子设备运行时,所述处理器901与所述存储器902之间通过总线通信,所述处理器901执行所述机器可读指令,以执行如上述订单处理方法的步骤。As shown in FIG. 9 , an
具体地,上述存储器902和处理器901能够为通用的存储器和处理器,这里不做具体限定,当处理器901运行存储器902存储的计算机程序时,能够执行上述订单处理方法。Specifically, the above-mentioned
对应于上述订单处理方法,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行上述订单处理方法的步骤。Corresponding to the above order processing method, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program executes the above-mentioned order processing method when the computer program is run by a processor. step.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考方法实施例中的对应过程,本申请中不再赘述。在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the method embodiment, which is not repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the technical scope disclosed in the present application can easily think of changes or replacements, which should be covered within the scope of the present application. within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910459294.7A CN111833131B (en) | 2019-05-29 | 2019-05-29 | Order processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910459294.7A CN111833131B (en) | 2019-05-29 | 2019-05-29 | Order processing method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111833131A true CN111833131A (en) | 2020-10-27 |
| CN111833131B CN111833131B (en) | 2025-01-17 |
Family
ID=72911564
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910459294.7A Active CN111833131B (en) | 2019-05-29 | 2019-05-29 | Order processing method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111833131B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180012153A1 (en) * | 2015-01-29 | 2018-01-11 | Beijing Didi Infinity Technology And Development C O., Ltd. | Order allocation system and method |
| US20180204157A1 (en) * | 2016-06-06 | 2018-07-19 | Beijing Didi Infinity Technology And Development Co., Ltd. | Systems and methods for allocating appointment orders |
| CN109284881A (en) * | 2017-07-20 | 2019-01-29 | 北京嘀嘀无限科技发展有限公司 | Order allocation method, device, computer readable storage medium and electronic equipment |
| CN109377023A (en) * | 2018-09-28 | 2019-02-22 | 北京三快在线科技有限公司 | Order distribution method, device and electronic device |
| CN109426885A (en) * | 2017-08-28 | 2019-03-05 | 北京小度信息科技有限公司 | Order allocation method and device |
| CN109508799A (en) * | 2018-09-26 | 2019-03-22 | 长沙市到家悠享家政服务有限公司 | Order allocation method, device and electronic equipment |
| CN109767289A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | Order intelligent distribution method, device, computer equipment and storage medium |
-
2019
- 2019-05-29 CN CN201910459294.7A patent/CN111833131B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180012153A1 (en) * | 2015-01-29 | 2018-01-11 | Beijing Didi Infinity Technology And Development C O., Ltd. | Order allocation system and method |
| US20180204157A1 (en) * | 2016-06-06 | 2018-07-19 | Beijing Didi Infinity Technology And Development Co., Ltd. | Systems and methods for allocating appointment orders |
| CN109284881A (en) * | 2017-07-20 | 2019-01-29 | 北京嘀嘀无限科技发展有限公司 | Order allocation method, device, computer readable storage medium and electronic equipment |
| CN109426885A (en) * | 2017-08-28 | 2019-03-05 | 北京小度信息科技有限公司 | Order allocation method and device |
| CN109508799A (en) * | 2018-09-26 | 2019-03-22 | 长沙市到家悠享家政服务有限公司 | Order allocation method, device and electronic equipment |
| CN109377023A (en) * | 2018-09-28 | 2019-02-22 | 北京三快在线科技有限公司 | Order distribution method, device and electronic device |
| CN109767289A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | Order intelligent distribution method, device, computer equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 杜剑平;韩中庚;: ""互联网+"时代的出租车资源配置模型", 数学建模及其应用, no. 04, 15 December 2015 (2015-12-15) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111833131B (en) | 2025-01-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11318942B2 (en) | Travel speed control method, apparatus, computing device, and storage medium | |
| CN116691645B (en) | Control method, device and storage medium of range extender based on navigation information | |
| JP6584640B2 (en) | Method and system for changing request location information | |
| CN111833132A (en) | An order processing method, device, electronic device and storage medium | |
| CN111782404B (en) | A data processing method and related equipment | |
| EP3273348A1 (en) | Crowd-sourced cloud computing in a multiple resource provider environment | |
| AU2016400119A1 (en) | Methods and systems for carpooling | |
| CN111159317B (en) | System and method for determining path topology relationships | |
| CN110945557B (en) | Systems and methods for determining an estimated time of arrival | |
| CN112352228A (en) | Data storage system and method | |
| WO2021253346A1 (en) | Data transmission computation method and apparatus, and storage medium | |
| CN112035548A (en) | Recognition model acquisition method, recognition method, device, equipment and medium | |
| CN106888107A (en) | A kind of sliding window business datum determines method and device | |
| CN111475736A (en) | Community mining method, device and server | |
| CN111106960B (en) | A kind of virtual network mapping method, mapping device and readable storage medium | |
| CN117495989A (en) | Data processing method, device, equipment and readable storage medium | |
| CN111833131A (en) | An order processing method, device, electronic device and storage medium | |
| CN111831800A (en) | Question-answer interaction method, apparatus, device and storage medium | |
| CN111861614B (en) | Order processing method, device, electronic device and storage medium | |
| CN111861625B (en) | Abnormal order determination method and device | |
| CN106919451B (en) | Data processing method and device | |
| CN116691643B (en) | Control methods, devices, and storage media for range extenders in congested traffic conditions | |
| CN112306675A (en) | Data processing method, related device and computer readable storage medium | |
| CN109254928A (en) | A kind of method of log processing, system, equipment and computer readable storage medium | |
| CN113689302A (en) | Life insurance product information recommendation method and device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |