CN111832875B - Data processing method, readable storage medium, and electronic device - Google Patents

Data processing method, readable storage medium, and electronic device Download PDF

Info

Publication number
CN111832875B
CN111832875B CN202010198051.5A CN202010198051A CN111832875B CN 111832875 B CN111832875 B CN 111832875B CN 202010198051 A CN202010198051 A CN 202010198051A CN 111832875 B CN111832875 B CN 111832875B
Authority
CN
China
Prior art keywords
task
processed
attribute information
information
processing
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.)
Active
Application number
CN202010198051.5A
Other languages
Chinese (zh)
Other versions
CN111832875A (en
Inventor
吴奎达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN202010198051.5A priority Critical patent/CN111832875B/en
Publication of CN111832875A publication Critical patent/CN111832875A/en
Application granted granted Critical
Publication of CN111832875B publication Critical patent/CN111832875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a data processing method, a readable storage medium and electronic equipment, wherein attribute information matched with each task to be processed in a task set to be processed is determined by determining an attribute information set comprising attribute information of at least one task processing terminal and a task set to be processed comprising at least one task to be processed, and when the type of a task processing terminal corresponding to the attribute information matched with the task to be processed is state information which is a first processing terminal in an execution task, first processing information which does not comprise attribute information is sent to a sending terminal of the task to be processed. The embodiment of the invention can match the state information of the task to be processed with the attribute information of the first processing terminal in the execution task, thereby improving the utilization rate of the first processing terminal and the overall task processing efficiency of the task processing system.

Description

Data processing method, readable storage medium, and electronic device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, a readable storage medium, and an electronic device.
Background
In the operation process of some internet software platforms, a large number of task processing terminals associated with the platforms need to be allocated to process tasks received by the platforms. At present, most platforms select idle task processing terminals to process when acquiring a task to be processed, and the situation that the task processing terminals in the executing task are more matched with the currently received task to be processed is not considered. Meanwhile, for part of platforms, task processing terminals in execution tasks are considered when tasks are distributed, but the task processing terminals in execution tasks have great uncertainty, and the situation of temporarily replacing the task processing terminals often occurs, so that the problems of low efficiency of platform task processing, poor user experience and the like are caused.
Disclosure of Invention
In view of the above, the embodiment of the invention discloses a data processing method, a readable storage medium and an electronic device, so as to improve the utilization rate of a task processing terminal in executing a task and the overall task processing efficiency of a task processing system while ensuring user experience.
In a first aspect, an embodiment of the present invention discloses a data processing method, where the method includes:
Determining an attribute information set, wherein the attribute information set comprises attribute information of at least one task processing terminal, the task processing terminal comprises at least one first processing terminal, and state information of the first processing terminal is used for executing a task;
Determining a task set to be processed, wherein the task set to be processed comprises at least one task to be processed;
determining attribute information matched with each task to be processed in a task set to be processed;
For each task to be processed, responding to the matched attribute information corresponding to a first processing terminal, and generating first processing information of the task to be processed;
and sending the first processing information to a sending terminal corresponding to the task to be processed, wherein the first processing information is used for prompting to acquire the matched task processing terminal, but does not have the attribute information of the matched task processing terminal.
Further, the determining the set of attribute information includes:
Periodically acquiring attribute information corresponding to at least one task processing terminal according to a preset first period;
Updating each attribute information to the attribute information set to determine the attribute information set.
Further, the determining the set of attribute information further includes:
detecting the content of each attribute information in the attribute information set;
in response to detecting attribute information comprising predetermined content, the attribute information is removed from the set of attribute information.
Further, the determining attribute information that each task to be processed in the task set to be processed matches specifically includes:
Periodically matching each task to be processed with each attribute information according to a preset second period to determine the attribute information matched with each task to be processed; or alternatively
And responding to the received task matching instruction, and matching each task to be processed with each attribute information to determine the attribute information matched with each task to be processed.
Further, the method further comprises:
For each task to be processed, responding to the matched attribute information to correspond to a second processing terminal, and generating second processing information of the task to be processed, wherein the state information of the second processing terminal is idle;
and sending the second processing information to a sending terminal corresponding to the task to be processed, wherein the second processing information is used for prompting to acquire the matched task processing terminal and the attribute information of the matched task processing terminal.
Further, the method further comprises:
Responding to the matched attribute information corresponding to a second processing terminal, and distributing the task to be processed to the matched second processing terminal;
and updating the task set to be processed.
Further, the updating the task set to be processed specifically includes:
Deleting each task to be processed allocated to the second processing terminal from the task set to be processed.
In a second aspect, an embodiment of the present invention discloses a data processing method, where the method includes:
Sending a task to be processed;
and responding to the matching of the task to be processed and the attribute information of the first processing terminal, and receiving first processing information returned by the server based on the task to be processed, wherein the state information of the first processing terminal is in the execution task, and the first processing information is used for prompting the acquisition of the matched task processing terminal but does not contain the attribute information of the matched task processing terminal.
Further, the method further comprises:
And responding to the matching of the task to be processed and the attribute information of the second processing terminal, and receiving second processing information returned by the server based on the task to be processed, wherein the state information of the second processing terminal is idle, and the second processing information is used for prompting the acquisition of the matched task processing terminal and the attribute information of the matched task processing terminal.
In a third aspect, embodiments of the present invention disclose a computer readable storage medium storing computer program instructions which, when executed by a processor, implement the method of any of the first and second aspects.
In a fourth aspect, an embodiment of the present invention discloses an electronic device, including a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of the first and second aspects.
The embodiment of the invention discloses a method for processing a task, which comprises the steps that matching state information of the task to be processed is attribute information of a first processing terminal in an execution task, and the first processing information which does not comprise the attribute information is sent to a sending terminal of the task to be processed, so that user experience is ensured when the task processing terminal for processing the task to be processed is replaced temporarily. Meanwhile, the method and the device can improve the utilization rate of the first processing terminal and the overall task processing efficiency of the task processing system.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method of an alternative implementation of the server side according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method of another alternative implementation of the server side according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data processing method at a server side according to an embodiment of the present invention;
FIG. 5 is a flowchart of a data processing method at a terminal side according to an embodiment of the present invention;
FIG. 6 is a diagram of a first process information according to an embodiment of the present invention;
FIG. 7 is a diagram of a second process information according to an embodiment of the present invention;
fig. 8 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The present invention is described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in detail. The present invention will be fully understood by those skilled in the art without the details described herein. Well-known methods, procedures, flows, components and circuits have not been described in detail so as not to obscure the nature of the invention.
Moreover, those of ordinary skill in the art will appreciate that the drawings are provided herein for illustrative purposes and that the drawings are not necessarily drawn to scale.
Unless the context clearly requires otherwise, the words "comprise," "comprising," and the like in the description are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
In the description of the present invention, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
Fig. 1 is a schematic diagram of a data processing system according to an embodiment of the present invention, and as shown in fig. 1, an application scenario of the data processing method includes a server 10, a task sending terminal 11, and a task processing terminal 12 connected through a network. The server 10 is configured to receive a task to be processed sent by the task sending terminal 11, so as to determine a task set to be processed; the server 10 is further configured to receive attribute information sent by the task processing terminal 12, so as to determine an attribute information set. In this embodiment, the server 10 may be a single server or may be a server cluster configured in a distributed manner. The server 10 determines a task processing terminal 12 for processing each task to be processed by matching the task set to be processed and the attribute information set, generates corresponding processing information based on the type of the task processing terminal 12, and sends the processing information to a task sending terminal 11 corresponding to each task to be processed.
The data processing system described above may be applied to various on-line to off-line application scenarios, such as a network taxi reservation scenario and a take-away delivery scenario. Taking the network taxi reservation scenario as an example, the network taxi driver holds a task processing terminal 12 for receiving a task and reporting vehicle position information and processing task information during or after the task execution. In this embodiment, the task processing terminal 12 may be a general-purpose data processing terminal with a communication function, such as a smart phone or a tablet computer, capable of running a computer program. The server 10 periodically receives the position information reported by the task processing terminal 12, and can determine the attribute information of the task processing terminal 12 in combination with other information stored in advance. The task transmitting terminal 11 may transmit the order of the network appointment to the server 11 through the network by receiving a command input by the user. The server 10 distributes the order to the task processing terminals 12 based on the content of the network appointment order matching the attribute information of the eligible task processing terminals.
FIG. 2 is a flowchart of a data processing method according to an alternative implementation manner of the embodiment of the present invention, as shown in FIG. 2, where the method includes:
Step S100, determining an attribute information set.
Specifically, the attribute information set is determined by a server and includes attribute information of at least one task processing terminal, and the attribute information set is used for distributing the task to be processed received by the server to the corresponding task distribution device based on each attribute information. The attribute information is used for representing the attribute of the corresponding task processing terminal, and may include a terminal identifier used for representing the corresponding task processing terminal, location information of the task processing terminal, status information of the task processing terminal and other information. The terminal identification can be, for example, text, number, code and other information corresponding to the task processing terminals one by one; the position information is used for representing the current position coordinates of the task processing terminal and can be represented by longitude and latitude; the state information is used for representing the current state information of the task processing terminal, and the state information can comprise executing tasks, idling, faults and the like. The task processing terminals are used for processing tasks to be processed, which are received by the server, the task processing terminals corresponding to the attribute information in the attribute information set comprise at least one first processing terminal, and the state information of the first processing terminal is in the task execution. And the task processing terminals corresponding to the attribute information in the attribute information set also comprise at least one second processing terminal, and the state information of the second processing terminal is idle.
For example, when the task processing terminal is a delivery device of the take-away platform, the attribute information set includes attribute information corresponding to the delivery device that is processing the delivery task and attribute information corresponding to the delivery device that is idle. The attribute information is used for representing the attribute of the corresponding distribution equipment and comprises terminal identifiers used for representing the distribution equipment, the current position of the distribution equipment, the current state information of the distribution equipment, the level of the distribution equipment and other information. When the task processing terminal is a driver terminal registered by the network taxi-taking platform, the attribute information set comprises attribute information corresponding to the driver terminal in the passenger carrying state and attribute information corresponding to the idle driver terminal. The attribute information is used for representing vehicle attributes corresponding to the driver terminals, and comprises terminal identifiers for representing network appointment vehicles corresponding to the driver terminals, current positions, current state information, vehicle owner information, service life of the vehicle, grades and scores of the vehicle owners in a platform and other information.
The position information, state information and other part of attribute information of the task processing terminal can change at any time. Therefore, the attribute information set needs to be updated periodically. In this embodiment, the determining the attribute information set may include:
step S110, attribute information corresponding to at least one task processing terminal is periodically acquired according to a preset first period.
Specifically, the server sets a first period in advance, and periodically acquires attribute information corresponding to at least one task processing terminal connected with the server according to the first period. The acquiring process may be that the server automatically acquires the attribute information, or each task processing terminal periodically uploads the corresponding attribute information according to a first period preset by the server.
For example, when the task processing terminal is a driver terminal registered by the network taxi platform, and the first period is 10s, each driver terminal registered by the network taxi platform transmits current attribute information to the server every 10 s.
Step S120, updating each attribute information to the attribute information set to determine the attribute information set.
Specifically, after each time the server obtains the attribute information sent by each task processing terminal, the attribute information is updated to the attribute information set, and the updating process is to replace the attribute information stored in the attribute information set with the current attribute information of each task processing terminal.
Optionally, to ensure that the content of the attribute information in the attribute information set is the content expected by the server, the process of determining the attribute information set may further include:
step S130, detecting the content of each attribute information in the attribute information set.
Specifically, after updating the attribute information set each time, the server detects the content of each piece of attribute information currently in the attribute information set to determine whether each piece of attribute information content meets the preset requirement of the server. The detection process may preset a predetermined content for the server, and detect whether each of the attribute information includes the predetermined content.
For example, when the server is a network taxi platform server, the predetermined content may be preset as "state information: a fault). After the server updates the attribute information set based on the attribute information uploaded by each driver terminal each time, the server detects each attribute information in the attribute information set to determine whether attribute information including state information as faults exists.
Step S140, in response to detecting attribute information containing predetermined content, removing the attribute information from the attribute information set.
Specifically, when the server finds attribute information containing predetermined content in the detection process, the attribute information is removed. For example, when the server is a network taxi platform server, the predetermined content may be preset as "state information: and when the server detects that the attribute information containing the state information is faulty, removing the attribute information from the attribute information set. The detection process can ensure that the server can distribute the task to be processed to the task processing terminal corresponding to the attribute information meeting the requirements of the server when distributing the task.
Step S200, determining a task set to be processed.
Specifically, the task set to be processed is determined by a server and is stored in storage middleware of the server or a database connected with the server. The task set to be processed comprises at least one task to be processed, and the server stores the task to be processed into the task set to be processed after receiving the task to be processed sent by the terminal each time.
Step S300, determining attribute information matched with each task to be processed in a task set to be processed.
Specifically, after determining the attribute information set and the task set to be processed, the server further matches elements in the attribute information set and the task set to be processed, so as to determine attribute information matched with each task to be processed in the task set to be processed in the attribute information set, and enable the server to further determine a task processing terminal for processing each task to be processed.
In an optional implementation manner of this embodiment, the process of determining, by the server, attribute information that each of the tasks to be processed matches in the task set to be processed is: and periodically matching each task to be processed with each attribute information according to a preset second period so as to determine the attribute information matched with each task to be processed.
Specifically, the server presets a second period for information matching, and then periodically matches each task to be processed with each attribute information according to the second period. The server is taken as a network vehicle reservation platform server, the attribute information is vehicle attribute information of a driver terminal registered by the network vehicle reservation platform, and the task to be processed is taken as a network vehicle reservation order. And when the second period is 2 minutes, the server performs primary matching on each network vehicle reservation order in the task set to be processed and each attribute information in the attribute information set every two minutes to obtain attribute information matched with each network vehicle reservation order.
In another optional implementation manner of this embodiment, the process of determining, by the server, attribute information that each of the tasks to be processed matches in the task set to be processed is: and responding to the received task matching instruction, and matching each task to be processed with each attribute information to determine the attribute information matched with each task to be processed.
Specifically, when the server receives a task matching instruction sent by a specific device, matching each task to be processed with each attribute information is performed to determine attribute information matched with each task to be processed. The specific equipment is used for controlling the server to carry out the matching process by sending a task matching instruction. The server is taken as a network vehicle reservation platform server, the attribute information is vehicle attribute information of a driver terminal registered by the network vehicle reservation platform, and the task to be processed is taken as a network vehicle reservation order. When the specific equipment sends a task matching instruction to the server, the server matches each network vehicle reservation order in the task set to be processed with each attribute information in the attribute information set to obtain attribute information matched with each network vehicle reservation order.
Optionally, in this embodiment, the attribute information set and the task set to be processed may be matched through KM algorithm. The KM algorithm is often used to solve for maximum weight matching under perfect matching. Within a bipartite graph, the left vertex is X and the right vertex is Y, and for each set of left and right connections X iYj, there is a weight of w ij, and a match is made such that the sum of all w ij is maximized. Namely, when the task set to be processed is X, the attribute information set is Y, the weight obtained by matching the ith element X i in the task set to be processed and the jth element Y j in the attribute information set is W ij, and after matching through the KM algorithm, the weight sum obtained by matching each attribute information of each task to be processed is the largest. The matching is carried out through the algorithm, so that the matching degree of the whole system for carrying out task processing is most reasonable, and the efficiency is maximized.
Step S400, for each task to be processed, generating first processing information of the task to be processed in response to the matching attribute information corresponding to the first processing terminal.
Specifically, after the server matches the attribute information of each task to be processed, the server further judges the type of the task processing terminal corresponding to the attribute information. When the state information contained in the attribute information matched with the task to be processed is in the execution task, determining a task processing terminal corresponding to the attribute information as a first processing terminal, and generating first processing information of the task to be processed. The first processing information is used for prompting to acquire the matched task processing terminal, but does not have the attribute information of the matched task processing terminal.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. The first processed information may be "your order has been ordered by the driver, who arrived at your location approximately 10:30 ago. And step 500, sending the first processing information to a sending terminal corresponding to the task to be processed.
Specifically, after generating first processing information of a task to be processed, the server sends the first processing information to a sending terminal corresponding to the task to be processed. In this embodiment, when the attribute information of the task to be processed matches corresponds to the first processing terminal, the server only sends the generated first processing information to the sending terminal corresponding to the task to be processed to prompt that the matched task processing terminal is obtained, but does not send the task to be processed to the first processing terminal corresponding to the attribute information, and the task to be processed still participates in next matching in the task to be processed set until the state information of the first processing terminal is converted into idle or other state information is matched into idle task processing terminals.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. When the network appointment order is matched with the vehicle attribute information in the task execution, the order receiving information is sent to a sending terminal of the network appointment order, and the order receiving information is only used for reminding the sending terminal that the network appointment order is processed, but not informing the sending terminal of processing the vehicle attribute information of the network appointment order. Meanwhile, the server does not send the network taxi reservation order to the driver terminal until the state information of the vehicle is converted into the idle state or is matched with the driver terminal with other state information as the idle state.
In this embodiment, the method described in the foregoing implementation manner is that the matching status information of the task to be processed is attribute information of a first processing terminal in the execution task, and the first processing information that does not include the attribute information is sent to the sending terminal of the task to be processed, so as to ensure user experience when temporarily replacing the task processing terminal that processes the task to be processed. Meanwhile, the method and the device can improve the utilization rate of the first processing terminal and the overall task processing efficiency of the task processing system.
FIG. 3 is a flowchart of a data processing method according to another alternative implementation manner of the embodiment of the present invention, as shown in FIG. 3, where the method includes:
Step S100, determining an attribute information set.
Step S200, determining a task set to be processed.
Step S300, determining attribute information matched with each task to be processed in a task set to be processed.
Specifically, the steps S100-S300 are the same as those in fig. 1, and are not described herein.
Step S310, the task processing terminal corresponding to each matched attribute information.
Specifically, after matching the corresponding attribute information for each task to be processed in the task set to be processed, the server determines a task processing terminal type corresponding to each attribute information, so as to further generate corresponding processing information based on the task processing terminal type corresponding to each attribute information.
Step S400, generating first processing information of the task to be processed.
Specifically, when the server judges that the attribute information matched with the task to be processed corresponds to a first processing terminal, first processing information which does not include the attribute information of the first processing terminal is generated, and the first processing information is only used for prompting a sending terminal of the task to be processed to acquire the matched task processing terminal. The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. The first processing information is used for prompting the user that the order of the network appointment vehicle is ordered, and the order can be "the order of the user is ordered by the driver, and the driver reaches the position of the user before the driver is approximately 10:30".
And step 500, sending the first processing information to a sending terminal corresponding to the task to be processed.
Specifically, the step S500 is the same as fig. 1, and will not be described here again.
Step S400', generating second processing information of the task to be processed.
Specifically, for each task to be processed, when the state information contained in the matched attribute information is idle, determining the task processing terminal corresponding to the attribute information as a second processing terminal, and generating second processing information of the task to be processed. The second processing information is used for prompting to acquire the matched task processing terminal, and meanwhile, the second processing information is also provided with attribute information of the matched task processing terminal and is used for notifying a sending terminal of the task to be processed to process the attribute of the second processing terminal of the task to be processed.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. The second processing information is used for prompting the user that the order of the network appointment vehicle is received, the driver terminal information of the received order and the corresponding vehicle information are "the order of your order is received by three drivers, the license plate number is XXXXX, the historical order receiving amount of three drivers on the platform is 1 thousand orders, the average score is 4.8 minutes, and the vehicle is at the A position and reaches the position of your position approximately before 10:30 at present". Optionally, the second processing information further includes route planning performed by the server based on the driver position and the user position, and the route planning is displayed on a display interface of the sending terminal of the task to be processed in a form of pictures, characters, videos, webpages and the like.
And step S500', the second processing information is sent to the sending terminal corresponding to the task to be processed.
Specifically, after generating second processing information of a task to be processed, the server sends the second processing information to a sending terminal corresponding to the task to be processed.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. When the network appointment order is matched with the vehicle attribute information with idle state information, the order receiving information is sent to a sending terminal of the network appointment order, and the order receiving information is used for reminding the sending terminal that the network appointment order is processed and informing the sending terminal of processing the vehicle attribute information of the network appointment order.
When the attribute information of the task to be processed is matched corresponds to the second processing terminal, the server needs to further process to prevent the task to be processed from being matched again. Thus, the data processing method further comprises the steps of:
and step S600', distributing the task to be processed to the matched second processing terminal in response to the matched attribute information corresponding to the second processing terminal.
Specifically, when the attribute information matched with the task to be processed corresponds to a second processing terminal, the server distributes the task to be processed to the second processing terminal corresponding to the attribute information. And sending the task to be processed to the second processing terminal so that the second processing terminal processes the task to be processed.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. When the state information in the vehicle attribute information matched with the network about vehicle reservation order is idle, the network about vehicle reservation order is sent to a driver terminal corresponding to the vehicle attribute information, and the driver terminal can process the network about vehicle reservation order according to the content of the network about vehicle reservation order.
Step S700', update the set of tasks to be processed.
Specifically, the server updates the set of tasks to be processed after distributing each task to be processed corresponding to the second processing terminal to the corresponding second processing terminal. The updating process is to delete the allocated task to be processed so as to prevent the task to be processed from participating in the next matching process.
In this embodiment, the method described in the foregoing implementation manner may consider that the state information is a first processing terminal in the execution task and the state information is an idle second processing terminal when the task processing terminal is matched with the task to be processed, and generate different processing information based on the matched different task processing terminals, and send the different processing information to the sending terminal of the task to be processed. Under the condition that the first processing terminal is matched, user experience can be ensured when the task processing terminal for processing the task to be processed is temporarily replaced. Meanwhile, the method and the device can improve the utilization rate of the first processing terminal and the overall task processing efficiency of the task processing system.
Fig. 4 is a schematic diagram of a data processing method according to an embodiment of the present invention, as shown in fig. 4, the server determines an attribute information set 40 and a to-be-processed information set 41, and then matches the attribute information set 40 and the to-be-processed information set 41 according to a preset rule to obtain at least one to-be-processed information and an information pair 42 formed by the corresponding attribute information. After determining the information pair composed of the information to be processed and the corresponding attribute information, the server determines the task processing terminal type 43 corresponding to the attribute information included in the information pair. When the task processing terminal type corresponding to the attribute information is a first processing terminal, generating first processing information 44 which does not include the attribute information and sending the first processing information to a sending terminal 46 of the task to be processed; when the task processing terminal type corresponding to the attribute information is a second processing terminal, generating second processing information 45 including the attribute information, sending the second processing information to the sending terminal 46 of the task to be processed, simultaneously sending the task to be processed to the second processing terminal corresponding to the attribute information, and updating the set of information to be processed 41.
The server is taken as a network vehicle-booking platform server, the attribute information is vehicle attribute information registered by the network vehicle-booking platform, and the task to be processed is a network vehicle-booking order. The server determines an attribute information set by periodically acquiring attribute information sent by each driver terminal, and determines a task set to be processed by receiving a network appointment order sent by a passenger terminal within a preset time length. And the server periodically matches attribute information in the attribute information set for each network taxi reservation order in the task set to be processed through a KM algorithm so as to determine a driver terminal for processing each network taxi reservation order.
For each network appointment order, when the driver terminal is currently processing other network appointment orders, first processing information is sent to a passenger terminal sending the network appointment orders to inform that the driver terminal is in an appointment. While at the same time. And (3) matching attribute information for the network taxi reservation order in the next matching process until the attribute information matched with the idle driver terminal or the state of the driver terminal matched previously is converted into idle. And then the attribute information is sent to the passenger terminal to inform the driver terminal information for processing the network appointment order, and the network appointment order is sent to the driver terminal for processing by the driver terminal.
And when the driver terminal is currently idle, i.e. other network taxi reservation orders are not processed, sending second processing information to the passenger terminal sending the network taxi reservation orders to inform that a taxi is reserved by the driver terminal, and informing the passenger terminal of the taxi by the driver terminal information of the taxi. And simultaneously, the network about vehicle reservation order is sent to the driver terminal so as to be processed by the driver terminal, and the network about vehicle reservation order is deleted from the task set to be processed so as to prevent the network about vehicle reservation order from being matched again.
The method provided by the embodiment of the invention can simultaneously consider the driver terminal which is processing other network taxi reservation orders and the driver terminal with idle state information when the network taxi reservation orders sent by the passenger terminal are matched with the proper driver terminal, and only remind the passenger terminal of being received when the matched driver terminal is processing other network taxi reservation orders, the attribute information of the driver terminal is not sent, and the network taxi reservation orders are not sent to the driver terminal. The method can temporarily replace the driver terminal under the condition that other more proper driver terminals are matched in the later matching process, and meanwhile, the replacement process of the driver terminal is not known by the passenger terminal and the driver terminal, so that the user experience of the passenger and the driver is not affected.
Fig. 5 is a flowchart of a data processing method at a terminal side according to an embodiment of the present invention, as shown in fig. 5, where the data processing method includes:
Step S800, a task to be processed is sent.
Specifically, the task to be processed is sent to a server by a terminal, so that a task processing terminal for processing the task to be processed is determined by the server, and corresponding processing information is generated according to the state information of the task processing terminal. The task to be processed comprises information for determining a corresponding task processing terminal, such as task execution time, task requirements, task content and the like. The data processing method can be applied to task allocation and processing scenes of any internet platform, taking a network vehicle-restraining platform as an example, wherein the task to be processed is a network vehicle-restraining order, the task to be processed is sent to the network vehicle-restraining platform by a user terminal, a driver terminal for processing the network vehicle-restraining order is determined through the network vehicle-restraining platform, and corresponding network vehicle-restraining order processing information is generated according to state information of the driver terminal. Taking a take-out platform as an example, the task to be processed is a take-out order, and the take-out order is sent to the take-out platform by a user terminal, so that a rider terminal for processing the take-out order is determined through the take-out platform, and corresponding take-out order processing information is generated according to the state information of the rider terminal.
And step 900, responding to the matching of the task to be processed and the attribute information of the first processing terminal, and receiving first processing information returned by the server based on the task to be processed.
Specifically, after receiving a task to be processed sent by a terminal, the server matches the content of the task to be processed with the attribute information of the task processing terminal corresponding to the server so as to determine that the task to be processed is processed by the task processing terminal corresponding to the matched attribute information. The task processing terminal comprises a first processing terminal and a second processing terminal, wherein the state information of the first processing terminal is the attribute information of the first processing terminal when the attribute information matched with the to-be-processed information by the server is the attribute information of the first processing terminal in the execution task, the corresponding first processing information is generated, and the first processing information is returned to the sending terminal of the to-be-processed task. The first processing information is used for prompting to acquire the matched task processing terminal, but does not have the attribute information of the matched task processing terminal.
Fig. 6 is a schematic diagram of first processing information according to an embodiment of the present invention, as shown in fig. 6, the terminal receives and displays the first processing information, where the first processing information includes content "existing driver order" for prompting the terminal, that is, a task processing terminal that has been matched to process the task to be processed. The information of the processing time estimated by the server such as "estimated to arrive at the start before XX: XX" can also be included. But without the attribute information of the task processing terminal.
Further, when the attribute information matched by the server for the information to be processed is the attribute information of the second processing terminal, the method further includes the following steps:
And step 900', responding to the matching of the task to be processed and the attribute information of the second processing terminal, and receiving second processing information returned by the server based on the task to be processed.
Specifically, when the attribute information matched with the information to be processed by the server is the attribute information of the second processing terminal, generating corresponding second processing information and returning the second processing information to the sending terminal of the task to be processed. The second processing information is used for prompting to acquire the matched task processing terminal and the attribute information of the matched task processing terminal.
Fig. 7 is a schematic diagram of second processing information according to an embodiment of the present invention, as shown in fig. 7, the terminal receives and displays the second processing information, where the second processing information includes information "an existing driver receives a bill" for prompting the terminal to obtain a matched task processing terminal, and attribute information "a driver" of the task processing terminal: XXX; license plate number: XXX; driver current position: XXX ", may also include information such as the processing time expected by the server" expected to arrive at the start before XX: XX ".
According to the data processing method provided by the embodiment of the invention, the idle task processing terminals and the task processing terminals for executing the tasks are considered in the process of determining the task processing terminals for the tasks to be processed, so that the types and the number of the task processing terminals to be matched are increased. The method has the advantages that the task to be processed sent by the terminal equipment can find out the corresponding task processing terminal faster, the possibility of matching to the more suitable task processing terminal can be increased, and the utilization rate of the first processing terminal and the overall task processing efficiency of the task processing system are improved. Meanwhile, when the task processing terminal matched with the terminal is executing the task, the attribute equipment of the task processing terminal is not included in the received first processing information. The server can replace the terminal for processing the task to be processed when the server is matched with a more suitable task processing terminal, and the user experience of a terminal user for sending the task to be processed is not affected.
Fig. 8 is a schematic diagram of an electronic device according to an embodiment of the invention. The electronic device shown in fig. 8 is a general-purpose data processing apparatus comprising a general-purpose computer hardware structure including at least a processor 81 and a memory 82. The processor 81 and the memory 82 are connected by a bus 83. The memory 82 is adapted to store instructions or programs executable by the processor 81. The processor 81 may be a separate microprocessor or a collection of one or more microprocessors. Thus, the processor 81 performs the process of processing data and controlling other devices by executing the commands stored in the memory 82, thereby executing the method flow of the embodiment of the present invention as described above. The bus 83 connects the above components together, and connects the above components to the display controller 84 and the display device and the input/output (I/O) device 85. Input/output (I/O) devices 85 may be a mouse, keyboard, modem, network interface, touch input device, somatosensory input device, printer, and other devices known in the art. Typically, an input/output (I/O) device 88 is connected to the system through an input/output (I/O) controller 86.
The memory 82 may store software components such as an operating system, communication modules, interaction modules, and application programs, among others. Each of the modules and applications described above corresponds to a set of executable program instructions that perform one or more functions and methods described in the embodiments of the invention.
The above-described flow diagrams and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention illustrate various aspects of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
Meanwhile, as will be appreciated by those skilled in the art, aspects of embodiments of the present invention may be implemented as a system, method, or computer program product. Accordingly, aspects of embodiments of the invention may take the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a "circuit," module "or" system. Furthermore, aspects of the invention may take the form: a computer program product embodied in one or more computer-readable media having computer-readable program code embodied thereon.
Any combination of one or more computer readable media may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of embodiments of the present invention, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, such as in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to: electromagnetic, optical, or any suitable combination thereof. The computer readable signal medium may be any of the following: a computer-readable storage medium is not a computer-readable storage medium and can communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including: object oriented programming languages such as Java, smalltalk, C ++, PHP, python, and the like; and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package; executing partly on the user computer and partly on the remote computer; or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The invention also relates to a computer readable storage medium for storing a computer readable program for causing a computer to perform some or all of the above-described method embodiments.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of data processing, the method comprising:
Determining an attribute information set, wherein the attribute information set comprises attribute information of at least one task processing terminal, the task processing terminal comprises at least one first processing terminal, the state information of the first processing terminal is in a task execution process, and the attribute information comprises a terminal identifier for representing a corresponding task processing terminal, position information of the task processing terminal, state information of the task processing terminal and other information;
Determining a task set to be processed, wherein the task set to be processed comprises at least one task to be processed;
determining attribute information matched with each task to be processed in a task set to be processed;
For each task to be processed, responding to the matched attribute information corresponding to a first processing terminal, and generating first processing information of the task to be processed;
and sending the first processing information to a sending terminal corresponding to the task to be processed, wherein the first processing information is used for prompting to acquire the matched task processing terminal, but does not have the attribute information of the matched task processing terminal.
2. The method of claim 1, wherein the determining the set of attribute information comprises:
Periodically acquiring attribute information corresponding to at least one task processing terminal according to a preset first period;
Updating each attribute information to the attribute information set to determine the attribute information set.
3. The method of claim 2, wherein determining the set of attribute information further comprises:
detecting the content of each attribute information in the attribute information set;
in response to detecting attribute information comprising predetermined content, the attribute information is removed from the set of attribute information.
4. The method according to claim 1, wherein the determining attribute information that each of the tasks to be processed matches in the task set to be processed specifically includes:
Periodically matching each task to be processed with each attribute information according to a preset second period to determine the attribute information matched with each task to be processed; or alternatively
And responding to the received task matching instruction, and matching each task to be processed with each attribute information to determine the attribute information matched with each task to be processed.
5. The method according to claim 1, wherein the method further comprises:
For each task to be processed, responding to the matched attribute information to correspond to a second processing terminal, and generating second processing information of the task to be processed, wherein the state information of the second processing terminal is idle;
and sending the second processing information to a sending terminal corresponding to the task to be processed, wherein the second processing information is used for prompting to acquire the matched task processing terminal and the attribute information of the matched task processing terminal.
6. The method of claim 5, wherein the method further comprises:
Responding to the matched attribute information corresponding to a second processing terminal, and distributing the task to be processed to the matched second processing terminal;
and updating the task set to be processed.
7. The method according to claim 6, wherein updating the set of tasks to be processed is specifically:
Deleting each task to be processed allocated to the second processing terminal from the task set to be processed.
8.A method of data processing, the method comprising:
Sending a task to be processed;
Responding to matching of the task to be processed and attribute information of a first processing terminal, and receiving first processing information returned by a server based on the task to be processed, wherein the state information of the first processing terminal is in an execution task, the first processing information is used for prompting to acquire the matched task processing terminal but does not have the attribute information of the matched task processing terminal, and the attribute information comprises a terminal identifier used for representing the corresponding task processing terminal, position information of the task processing terminal, state information of the task processing terminal and other information.
9. The method of claim 8, wherein the method further comprises:
And responding to the matching of the task to be processed and the attribute information of the second processing terminal, and receiving second processing information returned by the server based on the task to be processed, wherein the state information of the second processing terminal is idle, and the second processing information is used for prompting the acquisition of the matched task processing terminal and the attribute information of the matched task processing terminal.
10. A computer readable storage medium storing computer program instructions which, when executed by a processor, implement the method of any one of claims 1-9.
11. An electronic device comprising a memory and a processor, wherein the memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-9.
CN202010198051.5A 2020-03-19 Data processing method, readable storage medium, and electronic device Active CN111832875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010198051.5A CN111832875B (en) 2020-03-19 Data processing method, readable storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010198051.5A CN111832875B (en) 2020-03-19 Data processing method, readable storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN111832875A CN111832875A (en) 2020-10-27
CN111832875B true CN111832875B (en) 2024-06-21

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009650A (en) * 2017-03-29 2018-05-08 北京嘀嘀无限科技发展有限公司 Net about car service request processing method, device and server
CN110175869A (en) * 2019-05-08 2019-08-27 北京三快在线科技有限公司 Vehicle allocation method and device, electronic equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009650A (en) * 2017-03-29 2018-05-08 北京嘀嘀无限科技发展有限公司 Net about car service request processing method, device and server
CN110175869A (en) * 2019-05-08 2019-08-27 北京三快在线科技有限公司 Vehicle allocation method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110910019B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111242333A (en) Network appointment order processing method, system, terminal and server
CN107845253B (en) Reservation order early warning method and server
CN113627792B (en) Unmanned vehicle scheduling management method, device, equipment, storage medium and program
CN108399460B (en) Network taxi booking order distribution processing method and server
GB2528169A (en) Vehicle generated social network updates
CN111526170A (en) Push method, display method, device, server, terminal and storage medium
US20200098009A1 (en) Information processing apparatus and information processing method
CN110956346A (en) Order processing method and device
CN111858082A (en) Prompt message sending method, prompt message output method, prompt message sending device, prompt message output device, electronic equipment and medium
CN111832875B (en) Data processing method, readable storage medium, and electronic device
JP2015179445A (en) Driving information collection system, on-vehicle unit, server, driving information collection method, and program
US20210278224A1 (en) Coordinating trips by vehicles in an on-demand environment
CN111178558B (en) Network appointment order processing method and device, computer equipment and readable storage medium
CN111861182B (en) Schedule creation method, device and system
CN111832875A (en) Data processing method, readable storage medium and electronic device
CN114240570B (en) Vehicle alarm event processing method and device, electronic equipment and storage medium
CN112686415B (en) Method and device for monitoring network taxi appointment behaviors
JP7247854B2 (en) Information processing device, information processing program, and information processing method
CN112101594A (en) Vehicle management method, device, storage medium and electronic equipment
CN111770075A (en) Task processing method and device, readable storage medium and electronic equipment
CN114038225B (en) Bus route data processing method and device and electronic equipment
CN112863223A (en) Bus information prompting method, device, storage medium and program product
CN112964269B (en) Information interaction method and device
US20220042811A1 (en) Method and server

Legal Events

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