Method and device for confirming reservation information, electronic device, storage medium, and computer program
By dividing service time data into cells and managing reservation status through read-only or read/write storage units, the method addresses inefficiencies in existing reservation systems, ensuring conflict-free reservation management across diverse service scenarios.
Patent Information
- Application Number
- JP2023518050
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-29
- Filing Date
- 2021-05-07
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-05-07
AI Technical Summary
The existing methods for determining reservation information are not applicable in scenarios where the number of reservations needs to be reduced based on the reservation status of the service, leading to inefficiencies and conflicts.
A method and apparatus that divide service time data into service time cells based on a unit time length, allowing for read-only or read/write storage units to manage reservation status, ensuring that overlapping reservations are prevented and enabling timely updates.
This approach enhances the applicability of reservation management by preventing conflicts and allowing for efficient reservation confirmation across various service scenarios, including single and multiple service providers.
Smart Images

Figure 0007549139000002 
Figure 0007549139000003 
Figure 0007549139000001
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This disclosure claims priority to a Chinese patent application filed on September 29, 2020, bearing application number 202011050506.5 and entitled "Method and Apparatus for Determining Reservation Information," the entire contents of which are incorporated herein by reference.
[0002] TECHNICAL FIELD The present disclosure relates to the field of computer technology, specifically to the field of information management technology, and more particularly to a method and apparatus for determining reservation information. [Background technology]
[0003] As people's daily lives become more and more rapid, online reservation services have become a common business for service providers. Currently, the method of confirming reservation information is to reduce the number of available reservations for a service provided by a service provider after the service is reserved.
[0004] However, the reservation information determination method of reducing the number of available reservations for a service depending on the reservation status of the service has a problem of poor applicability. Summary of the Invention [Means for solving the problem]
[0005] The present disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for determining reservation information.
[0006] A first aspect of the present disclosure provides a method for determining reservation information, the method including: a step of acquiring service time data for each service set by a service provider, the service time data including a service time period corresponding to each service; a step of determining a unit time length for which the service provider provides service based on the service time period of each service; a step of dividing the service time data into at least one service time cell based on the unit time length and storing data of each of the service time cells in a memory unit; and a step of setting a memory unit corresponding to each service time cell within the service time period of the first service as a read-only memory unit in response to receiving a service request for a first service sent by a service requester.
[0007] In some embodiments, the method for determining reservation information further includes outputting first reservation information to a service provider, the first reservation information including information indicating that a service time slot for the first service has been reserved.
[0008] In some embodiments, the method for determining reservation information further includes, for each service time cell within a service time slot of the first service, setting a service state of the service corresponding to the service time slot to which the service time cell belongs to to non-reservable.
[0009] In some embodiments, the step of determining the unit time length for which the service provider provides service based on the service time slots of each service includes determining the greatest common denominator of the service time slots of each service as the unit time length for which the service provider provides service.
[0010] A second aspect of the present disclosure provides a method for determining reservation information, the method including the steps of: acquiring a service acquisition request sent from a service requester to request presentation of each service of a service provider and a service time slot corresponding to each service; and in response to detecting that a storage unit corresponding to at least one service time cell in a service time slot of a second service among the services is a read-only storage unit, when presenting each service of the service provider and a service time slot corresponding to each service to the service requester, presenting the second service as a non-reservable service, wherein the service time cell is determined by the steps of acquiring each service and a service time slot of each service set by the service provider, identifying service time data of the service provider based on the service time slot of each service, determining a unit time length for which the service provider provides service based on the service time slot of each service, and dividing the service time data into at least one service time cell based on the unit time length and storing the data of each service time cell in the storage unit.
[0011] In some embodiments, the method for determining reservation information further includes, in response to detecting that the storage unit corresponding to each service time cell in a service time slot of a third service among the services is a readable / writable storage unit, presenting the third service as a reservable service when presenting each service of the service provider and the service time slots corresponding to each service to the service requester.
[0012] In some embodiments, the method for determining reservation information further includes a step of canceling an occupancy operation associated with the fourth service in response to receiving a service cancellation request for the fourth service, the occupancy operation associated with the fourth service including a step of making a memory unit corresponding to each service time cell within a service time slot of the fourth service a read-only memory unit in response to receiving a service request for the fourth service.
[0013] A third aspect of the present disclosure provides an apparatus for determining reservation information, the apparatus comprising: a first acquisition unit configured to acquire service time data including a service time period corresponding to each service set by a service provider; a determination unit configured to determine a unit time length for which the service provider provides service based on the service time period of each service; a division unit configured to divide the service time data into at least one service time cell based on the unit time length and store data of each service time cell in a storage unit; and a time cell setting unit configured to set a storage unit corresponding to each service time cell in the service time period of the first service as a read-only storage unit in response to receiving a service request for the first service sent by a service requester.
[0014] In some embodiments, the apparatus for determining reservation information further comprises an output unit configured to output first reservation information to the service provider, the first reservation information including information indicating that a service time slot of the first service has been reserved.
[0015] In some embodiments, the apparatus for determining reservation information further comprises a service state setting unit configured for each service time cell in a service time slot of the first service to set a service state of the service corresponding to the service time slot to which the service time cell belongs to to non-reservable.
[0016] In some embodiments, the determining unit comprises a determining module configured to determine the greatest common divisor of the service time slots of each service as the unit time length for which the service provider provides the service.
[0017] A fourth aspect of the present disclosure provides an apparatus for determining reservation information, the apparatus comprising: a second acquisition unit configured to acquire a service acquisition request transmitted from a service requester to request presentation of each service of a service provider and a service time slot corresponding to each service; and a first presentation unit configured to present each service of the service provider and a service time slot corresponding to each service as a non-reservable service when presenting each service of the service provider and a service time slot corresponding to each service to the service requester in response to detecting that a storage unit corresponding to at least one service time cell in a service time slot of a second service among the services is a read-only storage unit, wherein the service time cell is determined by acquiring each service and service time slot of each service set by the service provider, identifying service time data of the service provider based on the service time slot of each service, determining a unit time length for which the service provider provides service based on the service time slot of each service, dividing the service time data into at least one service time cell based on the unit time length, and storing the data of each service time cell in the storage unit.
[0018] In some embodiments, the apparatus for determining reservation information further comprises a second presentation unit configured to present the third service as a reservable service when presenting each service of the service provider and the service time slots corresponding to each service to a service requester in response to detecting that the storage unit corresponding to each service time cell in the service time slot of the third service among the services is a readable / writable storage unit.
[0019] In some embodiments, the apparatus for determining reservation information further comprises a cancellation unit configured to cancel an occupancy operation associated with the fourth service in response to receiving a service cancellation request for the fourth service, wherein the occupancy operation associated with the fourth service includes making a storage unit corresponding to each service time cell in a service time slot of the fourth service a read-only storage unit in response to receiving the service request for the fourth service.
[0020] In a fifth aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device comprising one or more processors and a storage device having one or more programs stored therein, the one or more programs, when executed by the one or more processors, causing the one or more processors to implement a method for determining reservation information of the first or second aspect.
[0021] In a sixth aspect of the present disclosure, an embodiment of the present disclosure provides a computer readable storage medium having a computer program stored thereon, the computer readable storage medium realizing, when the program is executed by a processor, a method for determining reservation information of the first aspect or the second aspect.
[0022] In a seventh aspect of the present disclosure, an embodiment of the present disclosure provides a computer program product, which when executed by a computer, realizes the method for determining reservation information of the first aspect or the second aspect.
[0023] The method and apparatus for determining reservation information according to the present disclosure obtain service time data including a service time period of each service set by a service provider, determine a unit time length for which the service provider provides service based on the service time period of each service, divide the service time data into at least one service time cell based on the unit time length, and upon receiving a service request for a service sent by a service requester, set the time information of each service time cell within the service time period of the service among the service time data as occupied information, so that other services that overlap with the time cell in which the service exists cannot be reserved, and the method is widely applicable.
[0024] The technology disclosed herein has resolved the problem of poor applicability of the reservation information determination method that reduces the number of available reservations for a service depending on the reservation status of the service.
[0025] It should be noted that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure. Other features of the present disclosure will become easier to understand from the following description.
[0026] The drawings are used for a better understanding of the present disclosure and are not intended to be limitations to the present disclosure. [Brief description of the drawings]
[0027] [Figure 1] FIG. 1 illustrates an exemplary system architecture to which embodiments of the present disclosure can be applied. [Diagram 2] 1 is a flow chart illustrating one embodiment of a method for determining reservation information in accordance with the present disclosure. [Diagram 3] 10 is a flow chart illustrating another embodiment of a method for determining reservation information in accordance with the present disclosure. [Figure 4] FIG. 1 is a structural schematic diagram illustrating an embodiment of an apparatus for determining reservation information according to the present disclosure. [Diagram 5] FIG. 2 is a structural schematic diagram showing another embodiment of an apparatus for determining reservation information according to the present disclosure; [Figure 6] FIG. 2 is a block diagram of an electronic device for implementing a method for determining reservation information according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] The following describes exemplary embodiments of the present disclosure with reference to the drawings. Various details of the embodiments of the present disclosure are described here for the sake of understanding, but these are merely illustrative. Therefore, it is obvious that those skilled in the art can make various changes and modifications to the embodiments of the present disclosure without departing from the scope and gist of the present disclosure. In the following description, for clarity and simplicity, descriptions of known functions and configurations are omitted.
[0029] FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of a method for determining reservation information or an apparatus for determining reservation information according to the present disclosure may be applied.
[0030] 1, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is used as a medium to provide a communications link between terminal devices 101, 102, 103 and server 105. Network 104 may include various types of connections, such as wires, wireless communications links, or fiber optic cables.
[0031] To send and receive messages, users can use terminal devices 101, 102, and 103 to communicate with server 105 via network 104. Various client applications that receive pushed services can be installed on terminal devices 101, 102, and 103, such as service reservation applications, medical interview applications, shopping applications, chat applications, web page applications, game applications, and financial applications.
[0032] Terminal devices 101, 102, 103 may be various electronic devices that have a display screen and support receiving pushed services, including, but not limited to, smartphones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer III) players, laptop computers, and desktop computers.
[0033] The terminal devices 101, 102, 103 may be hardware or software. If the terminal devices 101, 102, 103 are hardware, they may be various electronic devices, and if the terminal devices 101, 102, 103 are software, they may be installed in the above electronic devices. It may be implemented as multiple software or software modules (e.g., multiple software modules for providing distributed services), or may be implemented as a single software or software module. There is no particular limitation here.
[0034] The server 105 may acquire service time data including a service time period for each service set by the service provider from the terminal devices 101, 102, and 103, then determine a unit time length for which the service provider provides the service according to the service time period for each service, and divide the service time data into at least one service time cell based on the unit time length. When the server 105 receives a service request from a service requester acquired by the terminal devices 101, 102, and 103, the server 105 may set the time information of each service time cell within the service time period of the requested service among the service time data to "occupied."
[0035] The server 105 can acquire from the terminal devices 101, 102, 103 a service acquisition request sent from a service requester to request presentation of each service of the service provider and the service time slot corresponding to each service, and when the server 105 detects that a storage unit corresponding to any service time cell within a service time slot of a specific service among the services is a read-only storage unit, the server 105 transmits corresponding information to the terminal devices 101, 102, 103, and the terminal devices 101, 102, 103 present the service as a non-reservable service based on the information.
[0036] It should be noted that the method for determining reservation information according to the embodiment of the present disclosure is usually executed by the server 105, and accordingly, the device for determining reservation information is usually provided in the server 105. The terminal devices 101, 102, and 103 may be applied to data collection of a service provider or data collection of a service requester.
[0037] It should be understood that the numbers of terminal devices, networks and servers in Figure 1 are merely exemplary, and the numbers of terminal devices, networks and servers may be arbitrarily increased or decreased according to the needs of implementation.
[0038] 2, a flow diagram 200 of one embodiment of a method for determining reservation information according to the present disclosure is shown. The method for determining reservation information includes the following steps.
[0039] In step 201, service time data for each service set by a service provider is obtained, and the service time data includes a service time period corresponding to each service.
[0040] In this embodiment, the executing entity of the method for determining reservation information (for example, the server shown in FIG. 1) can obtain, by wired or wireless means, the service time data of each service set by the service provider (or the administrator of the service provider) acquired by the terminal, and the service time data includes each service time period corresponding to each service provided by the service provider. In this embodiment, the service provider is the party that provides the service, and may be a provider of a certain service (for example, a doctor that provides a medical interview service, a driver that provides a driving service, a lawyer that provides a consulting service, etc.), or may be a resource that provides a certain service (for example, a server that provides a storage service, a cloud computing platform that provides a computing service, a warehouse that provides an item storage service, etc.).
[0041] In step 202, the unit time length for which the service provider provides the service is determined based on the service time slot of each service.
[0042] In this embodiment, the unit time length for which the service provider provides the service can be determined based on the service time slot of each service set by the service provider. For example, if the service time slot of each service is set to one hour, that is, if the service time slot of each service is a positive integer multiple of one hour, one hour may be set as the unit time length for which the service provider provides the service, or if the minimum unit time length of the most accurate service time slot among the service time slots of each service is one minute, one minute may be set as the unit time length for which the service provider provides the service.
[0043] In step 203, the service time data is divided into at least one service time cell based on a unit time length, and the data of each service time cell is stored in a storage unit.
[0044] In this embodiment, the service time data is divided into a plurality of service time cells based on a unit time length, i.e., the service time period of each service in the service time data includes a positive integer number of service time cells, and data indicating the time information of each service time cell (e.g., data such as the start and end times of the service time cell) can be stored in each storage unit of the server. For example, if the service time data includes a service time period of service A from 6:00 to 8:00 a.m. on January 1, 2020, a service time period of service B from 7:00 to 8:00 a.m. on January 1, 2020, and a service time period of service C from 7:30 to 8:00 a.m. on January 1, 2020, and the unit time length is 30 minutes, the divided service time data may be four service time cells of 6:00 to 6:30, 6:30 to 7:00, 7:00 to 7:30, and 7:30 to 8:00 a.m. on January 1, 2020 in the service time period of service A, two service time cells of 7:00 to 7:30 and 7:30 to 8:00 a.m. on January 1, 2020 in the service time period of service B, and a service time cell of 7:30 to 8:00 a.m. on January 1, 2020 in the service time period of service C.
[0045] In step 204, in response to receiving a service request for a first service sent by a service requester, a storage unit corresponding to each service time cell within a service time slot of the first service is set as a read-only storage unit.
[0046] In this embodiment, when a service request for a first service sent by a service requester is received, the read / write mode of the storage unit corresponding to each time cell included in the service time period of the first service is set / adjusted to a read-only storage unit, that is, a storage unit in which data in the storage unit cannot be rewritten. Note that the first service may be any service provided by a service provider.
[0047] The method for determining reservation information according to the present embodiment includes obtaining service time data including a service time zone of each service set by a service provider, determining a unit time length for which the service provider provides a service based on the service time zone of each service, dividing the service time data into at least one service time cell based on the unit time length, and when receiving a service request for a service transmitted by a service requester, making a storage unit corresponding to each service time cell in the service time zone of the service in the service time data a read-only storage unit, and disabling the reservation or writing of information for other services that overlap with the time cell in which the service exists. This method can determine reservation information for the single service in a scene where a single service provider provides a single service. This method can determine reservation information for the multiple services in a scene where a single service provider provides multiple services, and the multiple services may or may not have conflicts in their service time zones. This method can determine reservation information for the service in a scene where multiple service providers provide a single service. This method can also determine reservation information for the multiple services in a scene where multiple service providers provide multiple services. This method can be widely applied.
[0048] Optionally, the method for determining reservation information further includes the step of outputting the first reservation information, including information indicating that the service time slot of the first service is reserved information, to the service provider.
[0049] In this embodiment, when a first service request sent by a service requester is received, information indicating that the service time slot for the first service has been reserved or that the first service has been reserved can be output to the service provider. In this embodiment, after a service or a service time slot provided by the service provider is requested by the service requester, information corresponding to the service provider is output, so that the service provider can grasp related information in a timely manner, thereby providing convenience to the service provider.
[0050] Optionally, the method for determining reservation information further includes, for each service time cell within a service time slot of the first service, setting a service state of the service corresponding to the service time slot to which the service time cell belongs to to non-reservable.
[0051] In this embodiment, the service states of all the services corresponding to the service time slots to which the service time cells belong within the service time slot of the first service reserved by the service requester may be set to a reservation unavailable state. For example, if the service time slot of a first service is 6:00-9:00 a.m. on a certain day, including service time cells 6:00-7:00, 7:00-8:00, and 8:00-9:00, the service time slot of a second service is 7:00-10:00 a.m. on that day, including service time cells 7:00-8:00, 8:00-9:00, and 9:00-10:00, the service time slot of a third service is 8:00-11:00 a.m. on that day, including service time cells 8:00-9:00, 9:00-10:00, and 10:00-11:00, and the service time slot of a fourth service is 6:00-7:00 a.m. on that day, including service time cells 6:00-7:00, then after the first service is reserved, The time cell 6:00-7:00 within the service time period 6:00-9:00 of the service belongs to the service time period 6:00-7:00 of the fourth service, the time cell 7:00-8:00 within the service time period 6:00-9:00 of the first service also belongs to the service time period 7:00-10:00 of the second service, and the time cell 8:00-9:00 within the service time period 6:00-9:00 of the first service also belongs to the service time period 7:00-10:00 of the second service and the service time period 8:00-11:00 of the third service. As a result, the service status of the second service corresponding to the service time period 7:00-10:00, the third service corresponding to the service time period 8:00-11:00, and the fourth service corresponding to the service time period 6:00-7:00 may all be set to unreservable.
[0052] In this embodiment, the service status of each service that belongs to a service time cell included in the service time slot of the reserved service may be set to unavailable for reservation, or the service status of a service whose service time slot overlaps / conflicts with the service time slot of the reserved service may be set to unavailable for reservation.After one service of a service provider is reserved, the reservation status of other services whose service time slot overlaps with the service time slot of the reserved service is updated, and reservation information of multiple services can be confirmed in a reservation scene of multiple services.
[0053] In some optional embodiments of the embodiment described with reference to FIG. 2, determining the unit time length for which the service provider provides service based on the service time slot of each service includes determining the greatest common denominator of the service time slots of each service as the unit time length for which the service provider provides service.
[0054] In this embodiment, the unit time length for which a service provider provides a service may be the greatest common denominator of the service time slots of the services provided by the service provider. For example, a service provider provides three types of services, service A, service B, and service C. If the service time slot for service A is 1:15 to 1:45 PM on a certain day, the service time slot for service B is 1:30 to 2:45 PM on that day, and the service time slot for service C is 3:00 to 4:00 PM on that day, the unit time length for which the service provider provides a service may be 15 minutes. Also, for example, a service provider provides three types of services, service D, service E, and service F. Of these, if the service time period for Service D is 1:20 to 1:50 pm on a certain day, the service time period for Service E is 1:35 to 2:45 pm on that day, and the service time period for Service F is 3:00 to 4:00 pm on that day, then each of the three time periods, 1:20 to 1:45, 1:35 to 2:45, and 3:00 to 4:00, can be made up of a positive integer number of time cells on a time axis consisting of time cells spaced 5 minutes apart (each time cell is 5 minutes), and therefore the unit time length for the service provider providing Services D, E, and F is 5 minutes.
[0055] In this embodiment, the greatest common denominator of the service time slots of each service provided by the service provider is set as the service time cell for which the service provider provides the service. This makes it possible to reduce the number of divided service time cells while ensuring that the service time slots of each service are divided into each service time cell, thereby improving the calculation efficiency of the system.
[0056] 3, there is shown a flow chart 300 of another embodiment of a method for determining reservation information according to the present disclosure. The method for determining reservation information includes the following steps:
[0057] In step 301, a service acquisition request is acquired, which is sent from a service requester and requests that each service of a service provider and a service time period corresponding to each service be presented.
[0058] In this embodiment, an entity executing the method for determining reservation information (e.g., the server shown in FIG. 1) can acquire, via wired or wireless means, a service acquisition request from a service requester provided by a service provider acquired by a terminal, and the service acquisition request is used to request presentation of each service provided by the service provider and the service time slots for each service.
[0059] In step 302, in response to detecting that the storage unit corresponding to at least one service time cell in the service time slot of the second service among the services is a read-only storage unit, when presenting each service of the service provider and the service time slot corresponding to each service to the service requester, the second service is presented as a non-reservable service, where the step of determining the service time cell includes the steps of: acquiring each service and the service time slot of each service set by the service provider, identifying the service time data of the service provider based on the service time slot of each service, determining the unit time length for which the service provider provides the service based on the service time slot of each service, and dividing the service time data into at least one service time cell based on the unit time length.
[0060] In this embodiment, when detecting that there exists a time cell whose corresponding storage unit is a read-only storage unit in a time cell included in a service time slot of any of the services provided by the service provider, when presenting each service provided by the service provider and the service time slot of each service to a service requester, the service is presented as a non-reservable service. Note that the second service may be any of the services provided by the service provider.
[0061] In this embodiment, the service time cell can be determined by the steps of obtaining service time data of each service set by the service provider, the service time data including each service time period corresponding to each service provided by the service provider, determining a unit time length for which the service provider provides the service based on the service time period set by the service provider, and dividing the service time data into a plurality of service time cells based on the unit time length, where each service time period of the service in the service time data includes a positive integer number of service time cells.
[0062] In the method for determining reservation information according to the present embodiment, a service acquisition request is received from a service requester, requesting the presentation of each service of a service provider and the service time slots corresponding to each service. If it is detected that the service time slot of a certain service among the services contains a service time cell with time information "occupied", the service is presented as a service that cannot be reserved. By doing so, after one service is reserved, the reservation information of services that overlap / conflict in time with the service time slot of the reserved service can be updated, thereby enabling the reservation status to be updated in a linked manner.
[0063] Optionally, the method for determining reservation information further includes, in response to detecting that the storage unit corresponding to each service time cell in a service time slot of a third service among the services is a readable / writable storage unit, presenting the third service as a reservable service when presenting each service of the service provider and the service time slots corresponding to each service to the service requester.
[0064] In this embodiment, when it is detected that the storage units corresponding to each service time cell in the service time slot of a certain service among the services provided by the service provider are all readable and writable storage units, when presenting each service and its service time slot to the service requester, the service is presented as a reservable service. In this embodiment, the reservation status of a service is determined by detecting the time information of each service time cell included in the service time slot of the service, thereby preventing the reservation status of two services with the same service name and no overlapping service time slots from affecting each other, and preventing the reservation status of two services with different service names and overlapping service time slots from being unable to be updated in conjunction with each other, and the applicability of this reservation method is further broadened.
[0065] Optionally, the method for determining reservation information further includes canceling an occupancy operation associated with the fourth service in response to receiving a service cancellation request for the fourth service, the occupancy operation associated with the fourth service including making a memory unit corresponding to each service time cell within a service time slot of the fourth service a read-only memory unit in response to receiving a service request for the fourth service.
[0066] In this embodiment, when a service requester receives a cancellation request to cancel a certain service, To, so The storage units corresponding to all the service time cells included in the service time period of the service are set as readable and writable storage units. The fourth service may be any of the services. In this embodiment, after the service requester cancels the reservation of a certain service, the storage units corresponding to the service time cells included in the service time period of the service are set as readable and writable storage units. Set In this way, any service that overlaps with the service time slot of the service in question can be updated to a reservable state, thereby realizing the linked updating of the reservation states of a plurality of services.
[0067] In some optional embodiments of the embodiment described in relation to Fig. 3 above, when multiple service requesters receive requests to operate the same service, problems such as conflicts in operations caused by multiple service requesters operating the same service at the same time can be avoided by controlling read / write authority, etc. The operation of the requester who first issued the request is permitted depending on the time at which the multiple received requesters issue their requests, i.e., the operation authority for the service is granted to the requester who first issued the request, thereby avoiding problems such as conflicts in operations caused by multiple service requesters operating the same service at the same time.
[0068] In some application scenarios, the service provider may be a doctor providing a medical interview service. Each service provided by the service provider may be a telephone interview service (time length: 30 minutes) and a video interview service (time length: 45 minutes). First, the service time data for providing services on June 22, 2020 set by the doctor (for example, the service time period for telephone interview service 1 is 9:00 to 9:30, the service time period for telephone interview service 2 is 11:00 to 11:30, the service time period for video interview service 3 is 9:00 to 9:45, the service time period for video interview service 4 is 10:00 to 10:45, and the service time period for video interview service 5 is 11:15 to 12:00) is obtained.
[0069] Next, based on the service time slots of the above five services set by the doctor, the unit time length for providing the services by the doctor is determined to be 15 minutes. It can be seen that the service time data of the doctor can be divided into a plurality of service time cells based on the unit time length, and that telephone interview service 1 includes service time cells 9:00-9:15 and 9:15-9:30, telephone interview service 2 includes service time cells 11:00-11:15 and 11:15-11:30, video interview service 3 includes service time cells 9:00-9:15, 9:15-9:30 and 9:30-9:45, video interview service 4 includes service time cells 10:00-10:15, 10:15-10:30 and 10:30-10:45, and video interview service 5 includes service time cells 11:15-11:30, 11:30-11:45 and 11:45-12:00. It can be understood that telephone interview service 1 and video interview service 3 have the same service time cell, and telephone interview service 2 and video interview service 5 have the same service time cell (i.e., there is overlap / conflict between the two in terms of service time), and when one service is booked, it may affect the reservation of the other service.
[0070] Then, cell information of the service time cell is generated, that is, each service time cell is associated with the service to which the service time cell belongs or the service time period of the service to which the service time cell belongs, and stored. For example, the cell information of the service time cell 9:00-9:15 may be {cell ID / service ID, doctor ID, 9:00 (start time of the service time period of the telephone interview service 1), 9:30 (end time of the service time period of the telephone interview service 1)} and {cell ID / service ID, doctor ID, 9:00 (start time of the service time period of the video interview service 3), 9:45 (end time of the service time period of the video interview service 3)}. The cell information of the service time cell 9:15-9:30 may be {cell ID, doctor ID, 9:00, 9:30} and {cell ID / service ID, doctor ID, 9:00, 9:45}. The cell information of the service time cell 9:30-9:45 may be {cell ID, doctor ID, 9:00, 9:45}. Cell information for each service time cell is generated and stored in a database.
[0071] When a service provided by a doctor is booked, the corresponding service time cell may be identified based on the service ID of the service or based on the start and end times of the service time slot for the service, and the time information of the corresponding service time cell may be set to "occupied."
[0072] Further referring to FIG. 4, as an embodiment of the method shown in each of the above figures, the present disclosure provides an embodiment of an apparatus for determining reservation information, which embodiment of the apparatus corresponds to the embodiment of the method shown in FIG. 2, and which can be specifically applied to various electronic devices.
[0073] As shown in FIG. 4, the apparatus 400 for determining reservation information of the present embodiment includes a first obtaining unit 401, a determining unit 402, a dividing unit 403, and a time cell setting unit 404. The first obtaining unit is configured to obtain service time data of each service set by the service provider, the service time data including a service time slot corresponding to each service. The determining unit is configured to determine a unit time length for which the service provider provides a service based on the service time slot of each service. The dividing unit is configured to divide the service time data into at least one service time cell based on the unit time length, and store the data of each service time cell in the storage unit. The time cell setting unit is configured to set the storage unit corresponding to each service time cell in the service time slot of the first service as a read-only storage unit in response to receiving a service request for the first service sent by the service requester.
[0074] In some embodiments, the apparatus for determining reservation information further comprises an output unit configured to output first reservation information to the service provider, the first reservation information including information indicating that a service time slot of the first service has been reserved.
[0075] In some embodiments, the apparatus for determining reservation information further comprises a service state setting unit configured for each service time cell in a service time slot of the first service to set a service state of the service corresponding to the service time slot to which the service time cell belongs to to non-reservable.
[0076] In some embodiments, the determining unit comprises a determining module configured to determine the greatest common divisor of the service time slots of each service as the unit time length for which the service provider provides the service.
[0077] Each unit in the above device 400 corresponds to a step of the method described with reference to Fig. 2. Therefore, the operations, features and technical effects achieved described in the above method for determining reservation information apply to the device 400 and the units contained therein as well, and the description thereof will be omitted here.
[0078] Further referring to FIG. 5, as an embodiment of the method shown in each of the above figures, the present disclosure provides an embodiment of an apparatus for determining reservation information, which embodiment of the apparatus corresponds to the embodiment of the method shown in FIG. 3, and which can be specifically applied to various electronic devices.
[0079] As shown in FIG. Confirm your reservation information The apparatus 500 for providing a service includes a second acquisition unit 501 and a first presentation unit 502. The second acquisition unit is configured to acquire a service acquisition request transmitted from a service requester, for requesting presentation of each service of the service provider and a service time slot corresponding to each service. In response to detecting that a storage unit corresponding to at least one service time cell in a service time slot of a second service among the services is a read-only storage unit, the first presentation unit is configured to present the second service as a non-reservable service when presenting each service of the service provider and a service time slot corresponding to each service to the service requester. Here, the service time cell is determined by acquiring each service and a service time slot of each service set by the service provider, identifying service time data of the service provider based on the service time slot of each service, determining a unit time length for which the service provider provides a service based on the service time slot of each service, dividing the service time data into at least one service time cell based on the unit time length, and storing the data of each service time cell in the storage unit.
[0080] In some embodiments, the apparatus for determining reservation information further comprises a second presentation unit configured to present the third service as a reservable service when presenting each service of the service provider and the service time slots corresponding to each service to a service requester in response to detecting that the storage unit corresponding to each service time cell in the service time slot of the third service among the services is a readable / writable storage unit.
[0081] In some embodiments, the apparatus for determining reservation information further comprises a cancellation unit configured to cancel an occupancy operation associated with the fourth service in response to receiving a service cancellation request for the fourth service, wherein the occupancy operation associated with the fourth service includes making a storage unit corresponding to each service time cell in a service time slot of the fourth service a read-only storage unit in response to receiving the service request for the fourth service.
[0082] Each unit in the above device 500 corresponds to a step of the method described with reference to Fig. 3. Therefore, the operations, features and technical effects achieved described in the above method for determining reservation information apply to the device 500 and the units contained therein as well, and the description thereof will be omitted here.
[0083] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium.
[0084] As shown in FIG. 6, a block diagram of an electronic device 600 for a method for determining reservation information according to an embodiment of the present disclosure is shown. The electronic device may represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital operations, mobile phones, smartphones, wearable devices, and other similar computing devices. Note that the components, their connections, and their functions shown here are merely examples, and are not intended to limit the embodiments of the present disclosure described and / or claimed herein.
[0085] As shown in FIG. 6, the electronic device includes one or more processors 601, memory 602, and interfaces (including high-speed and low-speed interfaces) for connecting each component. Each component is connected to each other by different buses, and may be implemented on a common motherboard or in other manners as necessary. The processor may process instructions executed in the electronic device, including instructions stored in or on a memory to display graphic information of a graphical user interface (GUI) on an external input / output device such as a display device coupled to the interface. In other embodiments, multiple processors and / or multiple buses may be used along with multiple memories as necessary. Also, multiple electronic devices may be connected, each device providing some required operations, such as a server array, a group of blade servers, or a multiprocessor system. In FIG. 6, one processor 601 is taken as an example.
[0086] The memory 602 is a non-transitory computer-readable storage medium provided by the present disclosure, where the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for determining reservation information provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions that are used to cause a computer to perform the method for determining reservation information provided by the present disclosure.
[0087] The memory 602, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions / modules corresponding to the method for determining reservation information in the embodiment of the present disclosure (e.g., the first obtaining unit 401, the determining unit 402, the dividing unit 403, and the time cell setting unit 404 as shown in FIG. 4). The processor 601 executes the non-transitory software programs, instructions and modules stored in the memory 602 to perform various functional applications and data processing of the server, i.e., to realize the method for determining reservation information in the embodiment of the above method.
[0088] The memory 602 includes a program storage area capable of storing an operating system, an application required for at least one function, and a data storage area capable of storing data generated in the use of the electronic device for determining reservation information. The memory 602 may also include a high-speed random access memory, and may also include a non-transitory memory (e.g., at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage device). In some embodiments, the memory 602 may optionally include a memory remotely located with respect to the processor 601, and the remotely located memory may be connected to the electronic device for determining reservation information via a network. Examples of the network include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.
[0089] The electronic device that executes the method for determining reservation information may further include an input device 603, an output device 604, and a bus 605. The processor 601, the memory 602, the input device 603, and the output device 604 may be connected via the bus 605 or in another manner, and FIG. 6 shows an example in which they are connected via the bus 605.
[0090] For example, the input device 603, such as a touch panel, a keypad, a mouse, a track pad, a touch pad, a pointing device, one or more mouse buttons, a track ball, a joystick, etc., can receive input numeric or character information and generate key signal inputs for user settings and function control of the electronic device to confirm reservation information. The output device 604 may include a display device, an auxiliary lighting device (e.g., LED), a tactile feedback device (e.g., vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch panel.
[0091] Various embodiments of the systems and techniques described herein may be implemented in digital electronic circuitry systems, integrated circuit systems, application specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. Each of these embodiments may be implemented in one or more computer programs that can be executed and / or interpreted in a programmable system that includes at least one programmable processor, which may be a special purpose or general purpose programmable processor, and that may include receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] These computer programs, which may also be referred to as programs, software, software applications or code, include machine instructions for a programmable processor and may be implemented using high level process and / or object oriented programming languages, and / or assembly / machine language. As used herein, the terms "machine readable medium" and "computer readable medium" refer to any computer program for providing machine instructions and / or data to a programmable processor. Hmm, It refers to an apparatus, device, and / or device (e.g., magnetic disk, optical disk, memory, programmable logic device (PLD)) that receives machine instructions in the form of a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0093] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer that includes a display device (e.g., a Cathode Ray Tube (CRT) or LCD (Liquid Crystal Display) monitor) for displaying information to a user, and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the computer. Other types of devices may also be used to interact with a user. For example, feedback provided to the user may be any form of sensing feedback, e.g., visual feedback, auditory feedback, or haptic feedback, and may receive input from the user in any form, including audio input, speech input, or haptic input.
[0094] The systems and techniques described herein may be implemented in a computing system including a back-end component (e.g., a data server), a computing system including a middleware component (e.g., an application server), a computing system including a front-end component (e.g., a user computer having a graphical user interface or a web browser) through which a user may interact with the embodiments of the systems and techniques described herein, or a computing system including any combination of such back-end, middleware, or front-end components. The components of the system may be connected by digital data communication through any form or medium, such as a communication network. Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0095] The computer system may include clients and servers. The clients and servers are typically remote from each other and interact through a communication network. The relationship of client and server is created by running computer programs on the respective computers having a client-server relationship to each other.
[0096] It should be noted that the above-mentioned various forms of flow can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, in sequence, or in a different order, as long as the desired results of the technical solution disclosed in this disclosure can be achieved. This specification is not limited thereto.
[0097] The above specific embodiments do not limit the scope of protection of the present disclosure. Those skilled in the art should understand that various modifications, combinations, recombinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and principle of the present disclosure should be included within the scope of protection of the present disclosure. [Explanation of symbols]
[0098] 400 Device for confirming reservation information 401 First Acquisition Unit 402 Decision Unit 403 Split Unit 404 Time Cell Setting Unit 500 Device for pushing information 501 Second Acquisition Unit 502 First presentation unit 502 600 Electronic equipment 601 Processor 602 Memory 603 Input Device 604 Output Device 605 Bus
Claims
1. 1. A method for determining reservation information, the method being executed by a computer and comprising: A step of acquiring service time data of each service set by a service provider, the service time data including a service time slot corresponding to each of the services; determining a unit time length for which the service provider provides the service based on a service time zone of each of the services; Dividing the service time data into at least one service time cell based on the unit time length, and storing data of each of the service time cells in a storage unit that corresponds one-to-one with each of the service time cells; in response to receiving a service request for a first service transmitted by a service requester, setting a storage unit corresponding to each service time cell within a service time slot of the first service as a read-only storage unit; The method includes:
2. The method according to claim 1 , further comprising the step of outputting, to the service provider, first reservation information including information indicating that a service time slot for the first service has been reserved.
3. 3. The method according to claim 1, further comprising the step of setting, for each service time cell within the service time slot of the first service, a service state of the service corresponding to the service time slot to which the service time cell belongs to, to non-reservable.
4. The step of determining a unit time length for which the service provider provides the service based on a service time zone of each of the services includes: a step of determining a greatest common divisor of the service time slots of the respective services as a unit time length for which the service provider provides the service, The method according to any one of claims 1 to 3.
5. 1. A method for determining reservation information, the method being executed by a computer and comprising: a step of acquiring a service acquisition request transmitted by a service requester, the service acquisition request being information for requesting presentation of each service of a service provider and a service time period corresponding to each service; in response to detecting that a storage unit corresponding to at least one service time cell in a service time slot of a second service among the services is a read-only storage unit, presenting the second service as a non-reservable service when presenting the services of the service provider and the service time slots corresponding to the services to the service requester; The service time cell comprises: acquiring each of the services and a service time zone for each of the services set by the service provider; determining service time data of the service provider based on a service time zone of each of the services; determining a unit time length for which the service provider provides the service based on a service time zone of each of the services; dividing the service time data into at least one service time cell based on the unit time length, and storing data of each of the service time cells in a storage unit that corresponds one-to-one with each of the service time cells; method.
6. 6. The method of claim 5, further comprising the step of: in response to detecting that the storage unit corresponding to each service time cell in a service time slot of a third service among the services is a readable / writable storage unit, presenting the third service as a reservable service when presenting each service of the service provider and the service time slots corresponding to each service to the service requester.
7. The method further includes, in response to receiving a service cancellation request for a fourth service, canceling an occupancy operation associated with the fourth service; The occupancy action associated with the fourth service is: in response to receiving a service request for the fourth service, setting a storage unit corresponding to each service time cell within a service time slot of the fourth service as a read-only storage unit; The method according to claim 5 or 6.
8. An apparatus for confirming reservation information, comprising: A first obtaining unit configured to obtain service time data of each service set by a service provider, the service time data including a service time slot corresponding to each service; a determining unit configured to determine a unit time length for which the service provider provides a service according to a service time slot of each of the services; a division unit configured to divide the service time data into at least one service time cell based on the unit time length, and store data of each of the service time cells in a storage unit that corresponds one-to-one with each of the service time cells; a time cell setting unit configured to set a storage unit corresponding to each service time cell within a service time slot of the first service as a read-only storage unit in response to receiving a service request for the first service sent by a service requester; An apparatus comprising:
9. The apparatus of claim 8 , further comprising an output unit configured to output first reservation information to the service provider, the first reservation information including information indicating that a service time slot of the first service has been reserved.
10. The apparatus according to claim 8 or 9, further comprising a service state setting unit configured to set, for each service time cell within a service time slot of the first service, a service state of a service corresponding to a service time slot to which the service time cell belongs to to non-reservable.
11. The determination unit is a determination module configured to determine a greatest common denominator of the service time slots of the respective services as a unit time length for which the service provider provides the service; An apparatus according to any one of claims 8 to 10.
12. An apparatus for confirming reservation information, comprising: A second acquisition unit configured to acquire a service acquisition request transmitted by a service requester, the service acquisition request being information for requesting presentation of each service of a service provider and a service time slot corresponding to each service; a first presentation unit configured to present the second service as a non-reservable service when presenting the services of the service provider and the service time slots corresponding to the services to the service requester in response to detecting that a storage unit corresponding to at least one service time cell in a service time slot of a second service of the services is a read-only storage unit; The service time cell comprises: acquiring each of the services and a service time zone of each of the services set by the service provider; identifying service time data of the service provider based on the service time zone of each of the services; determining a unit time length for which the service provider provides the service based on the service time zone of each of the services; dividing the service time data into at least one service time cell based on the unit time length, and storing data of each of the service time cells in a storage unit that corresponds one-to-one with each of the service time cells; Device.
13. 13. The apparatus of claim 12, further comprising: a second presentation unit configured to present the third service as a reservable service when presenting the services of the service provider and the service time slots corresponding to each of the services to the service requester in response to detecting that the storage unit corresponding to each service time cell in a service time slot of a third service among the services is a readable / writable storage unit.
14. The apparatus further comprises a cancel unit configured to cancel an exclusive operation associated with a fourth service in response to receiving a service cancellation request for the fourth service; The occupancy action associated with the fourth service is: in response to receiving a service request for the fourth service, setting a storage unit corresponding to each service time cell within a service time slot of the fourth service as a read-only storage unit.
14. Apparatus according to claim 12 or 13.
15. An electronic device comprising at least one processor and a memory communicatively connected to the at least one processor, An electronic device, wherein the memory stores instructions executable by the at least one processor, the instructions, when executed by the at least one processor, causing the at least one processor to perform the method of any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium having computer instructions stored thereon, comprising: A non-transitory computer readable storage medium in which the computer instructions are used to cause a computer to carry out the method of any one of claims 1 to 7.
17. A computer program for causing a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Speed change control device for car
JP1988006254A
Reservation acceptance system
JP2001216349A
Customer collection system
JP2003058734A
Reservation management device, reservation management method, and program
JP2012226702A
Reservation management device, reservation management method and reservation management program
JP2016218908A
