Hotel settlement method and settlement device
1. A hotel settlement method, comprising:
acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information;
determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner;
and sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information.
2. The hotel settlement method according to claim 1, wherein the step of obtaining commodity information required by the user is preceded by:
acquiring request information of a user, wherein the request information comprises commodity type information and quantity information;
searching for an initial vendor meeting the quantity information based on the commodity type information, wherein the initial vendor is the hotel partner;
acquiring distance information between the initial seller and a target hotel;
selecting a target vendor among the initial vendors based on the distance information.
3. The hotel settlement method of claim 2, wherein the step of selecting a target vendor among the initial vendors based on the distance information comprises:
acquiring path information of the initial seller and the target hotel;
calculating the goods picking time length of the goods based on the path information and the goods picking mode;
and selecting a target seller from the initial sellers based on the goods taking time length.
4. The hotel settlement method of claim 3, wherein the step of selecting a target vendor among the initial vendors based on the pickup duration comprises:
screening to obtain a target seller with the goods taking time less than or equal to the preset time by comparing the goods taking time with the preset time;
calculating the goods taking cost based on the path information of the target goods seller and the goods taking mode;
selecting a final vendor among the target vendors based on the pickup cost.
5. The hotel settlement method of claim 1, further comprising, prior to the step of sending a settlement instruction to the target receiving end based on the price information:
acquiring payment information of a user, wherein the payment information comprises payment modes of all payments and payment modes of partial payments;
if the payment information is payment information adopting a payment mode of all payments, verifying whether the payment information corresponds to the commodity information;
if the payment information does not correspond to the commodity information, a reminding instruction is sent out so that the user end equipment can remind the user of a payment error;
and if the payment information corresponds to the commodity information, continuously sending a settlement instruction to the target receiving end.
6. The hotel settlement method of claim 5, further comprising:
if the payment information is payment information adopting a partial payment mode, verifying whether the payment information meets the selling price of the hotel partner;
and if the payment information meets the selling price of the hotel partner, recording the payment information and finishing the account hanging process.
7. The hotel settlement method of claim 1, further comprising:
setting an account separating period;
and acquiring the accounting information based on the accounting period.
8. A hotel settlement device, comprising:
the information acquisition module is used for acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information;
the generation module is used for determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner;
and the account distribution module is used for sending a settlement instruction to the data receiving end based on the price information to obtain account distribution information.
9. An electronic device, comprising: memory, processor and computer program stored in the memory and executable on the processor, characterized in that the processor is adapted to implement the hotel settlement method according to any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the hotel settlement method of any one of claims 1 to 7.
Background
The independent closed loop of hotel payment system, independent closed loop with the third party payment system of hotel cooperation, therefore, when the user is shopping, need pay based on hotel payment system, also need pay based on third party payment system, twice payment process has been carried out, it is loaded down with trivial details from this to have brought user's shopping, and the user is when long-range shopping, can't purchase different commodities that different payment systems correspond through same window, need correspond different payment systems and establish different shopping windows, therefore, user shopping experience is not good, the process of many times payment is unfavorable for data security.
Disclosure of Invention
The embodiment of the invention provides a hotel settlement method and a settlement device, which solve the problem that a user needs to shop for many times during shopping.
In a first aspect, an embodiment of the present invention provides a hotel settlement method, including:
acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information;
determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner;
and sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information.
Optionally, before the step of obtaining the commodity information required by the user, the method includes:
acquiring request information of a user, wherein the request information comprises commodity type information and quantity information;
searching for an initial vendor meeting the quantity information based on the commodity type information, wherein the initial vendor is the hotel partner;
acquiring distance information between the initial seller and a target hotel;
selecting a target vendor among the initial vendors based on the distance information.
Optionally, the step of selecting a target vendor from the initial vendors based on the distance information includes:
acquiring path information of the initial seller and the target hotel;
calculating the goods picking time length of the goods based on the path information and the goods picking mode;
and selecting a target seller from the initial sellers based on the goods taking time length.
Optionally, the step of selecting a target vendor from the initial vendors based on the pickup duration includes:
screening to obtain a target seller with the goods taking time less than or equal to the preset time by comparing the goods taking time with the preset time;
calculating the goods taking cost based on the path information of the target goods seller and the goods taking mode;
selecting a final vendor among the target vendors based on the pickup cost.
Optionally, before the step of sending a settlement instruction to the target receiving end based on the price information, the method further includes:
acquiring payment information of a user, wherein the payment information comprises payment modes of all payments and payment modes of partial payments;
if the payment information is payment information adopting a payment mode of all payments, verifying whether the payment information corresponds to the commodity information;
if the payment information does not correspond to the commodity information, a reminding instruction is sent out so that the user end equipment can remind the user of a payment error;
and if the payment information corresponds to the commodity information, continuously sending a settlement instruction to the target receiving end.
Optionally, the method further includes:
if the payment information is payment information adopting a partial payment mode, verifying whether the payment information meets the selling price of the hotel partner;
and if the payment information meets the selling price of the hotel partner, recording the payment information and finishing the account hanging process.
Optionally, the method further includes:
setting an account separating period;
and acquiring the accounting information based on the accounting period.
In a second aspect, an embodiment of the present application provides a hotel settlement apparatus, including:
the information acquisition module is used for acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information;
the generation module is used for determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner;
and the account distribution module is used for sending a settlement instruction to the data receiving end based on the price information to obtain account distribution information.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor being adapted to implement the hotel settlement method as described above when executing the computer program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored: which computer program, when executed by a processor, implements the hotel settlement method as described above.
The embodiment of the invention has the following advantages or beneficial effects:
acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information; determining which payment system the commodity belongs to by acquiring a commodity source, and determining the payment due to each payment system according to price information; determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner; determining that the payee is a hotel and/or a hotel partner through the commodity source information, and further completing the payment process of the commodity under the payment system corresponding to the hotel or the hotel partner; the user does not need to pay for the payment for many times under two or even multiple payment systems, the times of the payment process are reduced, the safety of the payment process is improved, the shopping process is simplified, and the shopping experience of the user is also improved. And sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information. By acquiring the branch account information, the hotel partner and the hotel can conveniently compare bills, and errors are avoided.
Drawings
Fig. 1 is a flowchart of a hotel settlement method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a hotel settlement apparatus provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a storage medium according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a hotel settlement method provided in the embodiment of the present application, and the hotel settlement method provided in the embodiment is applicable to hotel scenes. The method may be performed by a hotel settlement apparatus, which may be implemented in software and/or hardware, typically integrated into a transfer robot.
As shown in fig. 1, an embodiment of the present invention provides a hotel settlement method, which specifically includes the following steps:
s101, acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information;
illustratively, a user purchases a beverage and a meal respectively, wherein price information of the meal is A, a source is a hotel, price information of the beverage is B, and the source is a hotel partner.
S102, determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner;
for example, based on that the source of the food is a hotel, it is determined that the data receiving end of the food is a cash register system of the hotel, and based on that the source of the beverage is a hotel partner, it is determined that the data receiving end of the beverage is a cash register system of the hotel partner. And then the payment process of the commodity is completed under the payment system corresponding to the hotel or the hotel partner.
S103, sending a settlement instruction to the data receiving end based on the price information to obtain branch account information.
For example, since the price information of the food is a, the amount corresponding to the price information a is allocated to the cashier system of the hotel, and since the price information of the beverage is B, the amount corresponding to the price information B is allocated to the cashier system of the hotel partner. And further, the automatic allocation of the amount to different payment systems through one-time payment of the user is realized.
The method comprises the steps of obtaining commodity information required by a user, wherein the commodity information comprises commodity source information and price information; determining which payment system the commodity belongs to by acquiring a commodity source, and determining the payment due to each payment system according to price information; determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner; determining that the payee is a hotel and/or a hotel partner through the commodity source information, and further completing the payment process of the commodity under the payment system corresponding to the hotel or the hotel partner; the user does not need to pay for the payment for many times under two or even multiple payment systems, the times of the payment process are reduced, the safety of the payment process is improved, the shopping process is simplified, and the shopping experience of the user is also improved. And sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information. By acquiring the branch account information, the hotel partner and the hotel can conveniently compare bills, and errors are avoided.
In a possible embodiment, the step of obtaining the commodity information required by the user is preceded by:
acquiring request information of a user, wherein the request information comprises commodity type information and quantity information;
searching for an initial vendor meeting the quantity information based on the commodity type information, wherein the initial vendor is the hotel partner;
acquiring distance information between the initial seller and a target hotel;
selecting a target vendor among the initial vendors based on the distance information.
Illustratively, according to the commodity type information and the quantity information required by the user, a merchant which can provide satisfactory service for the customer, namely an initial seller is selected, so that the problem that the user requirement is influenced due to insufficient goods of the seller is solved, the distance information between the initial seller which can meet the user requirement and a hotel where the user is located in each house is calculated, the situation that the initial harvest seller is too far away from the hotel where the user is located and cannot provide commodities for the user is avoided, and the problem that the hotel evaluation in the user center is influenced due to overlong waiting time of the user is also avoided.
In one possible embodiment, the step of selecting a target vendor from the initial vendors based on the distance information includes:
acquiring path information of the initial seller and the target hotel;
calculating the goods picking time length of the goods based on the path information and the goods picking mode;
and selecting a target seller from the initial sellers based on the goods taking time length.
Illustratively, route information from each initial vendor to the hotel where the user is located is planned on a map, and the goods taking time of the obtained goods is calculated in the same goods taking mode, so that the problem that the waiting time of the user is too long due to the fact that the route is blocked or the user cannot pass through is solved.
In one possible embodiment, the step of selecting a target seller from the initial sellers based on the pickup time includes:
screening to obtain a target seller with the goods taking time less than or equal to the preset time by comparing the goods taking time with the preset time;
calculating the goods taking cost based on the path information of the target goods seller and the goods taking mode;
selecting a final vendor among the target vendors based on the pickup cost.
Illustratively, by comparing the goods taking time with the preset time, the target goods seller with the goods taking time less than or equal to the preset time is obtained through screening, so that the problem that the waiting time of a user is too long due to the fact that a path is blocked or the goods cannot pass through is solved. And then calculating the goods taking cost according to the path information of the target goods selling merchant and the goods taking mode, and selecting the final goods selling merchant with lower goods taking cost, so that the cost is saved, and the resources are reasonably utilized.
In a possible implementation manner, before the step of sending a settlement instruction to the target receiving end based on the price information, the method further includes:
acquiring payment information of a user, wherein the payment information comprises payment modes of all payments and payment modes of partial payments;
if the payment information is payment information adopting a payment mode of all payments, verifying whether the payment information corresponds to the commodity information;
if the payment information does not correspond to the commodity information, a reminding instruction is sent out so that the user end equipment can remind the user of a payment error;
and if the payment information corresponds to the commodity information, continuously sending a settlement instruction to the target receiving end.
Illustratively, the payment information of the user is acquired, wherein the payment information comprises a payment mode of all payment and a payment mode of partial payment, a more flexible payment mode is provided for the user, when the user adopts the payment mode of all payment to pay, whether the amount paid by the user is matched with the amount due is verified, if not, alarm information is sent to the user, and wrong payment is avoided. One-time payment is realized through a payment mode of all payments, so that the user can meet different payment platforms through one-time payment.
And determining that the data receiving end of the food is a cash register system of the hotel based on the fact that the source of the food is the hotel, and determining that the data receiving end of the beverage is the cash register system of the hotel partner based on the fact that the source of the beverage is the hotel partner. And further, the money corresponding to the price information A is distributed to a cash register system of the hotel, and the money corresponding to the price information B is distributed to a cash register system of a hotel partner. And further, the automatic allocation of the amount to different payment systems through one-time payment of the user is realized.
In one possible embodiment, the method further includes:
if the payment information is payment information adopting a partial payment mode, verifying whether the payment information meets the selling price of the hotel partner;
and if the payment information meets the selling price of the hotel partner, recording the payment information and finishing the account hanging process.
Illustratively, when a user pays in a partial payment mode, only verifying whether the payment amount of the user meets the selling price of the hotel partner, if the payment information meets the selling price of the hotel partner, recording the payment information, and simultaneously performing account hanging processing on meals from the hotel, namely, allocating the amount B to a cash register system of the hotel partner, and counting the amount A on an unsettled account corresponding to the user. The payment mode with more modes is provided for the user, and the house account of the hotel is realized by hanging account while paying.
In one possible embodiment, the method further includes:
setting an account separating period;
and acquiring the accounting information based on the accounting period.
Illustratively, the automatic accounting function is realized by setting an accounting period, and when the unit of the accounting period is week, month and day, the settlement with the hotel is realized.
The following is an embodiment of the hotel settlement device provided by the embodiment of the present invention, the device and the hotel settlement method of the above embodiments belong to the same inventive concept, and details which are not described in detail in the embodiment of the hotel settlement device may refer to the above embodiment of the text processing method.
In a possible real-time manner, as shown in fig. 2, an embodiment of the present application provides a hotel settlement apparatus, including:
the information acquisition module 201 is configured to acquire commodity information required by a user, where the commodity information includes commodity source information and price information;
a generating module 202, configured to determine a data receiving end based on the commodity source information, where the data receiving end includes a hotel and a hotel partner;
and the accounting module 203 is configured to send a settlement instruction to the data receiving end based on the price information to obtain accounting information.
The method comprises the steps of obtaining commodity information required by a user, wherein the commodity information comprises commodity source information and price information; determining which payment system the commodity belongs to by acquiring a commodity source, and determining the payment due to each payment system according to price information; determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner; determining that the payee is a hotel and/or a hotel partner through the commodity source information, and further completing the payment process of the commodity under the payment system corresponding to the hotel or the hotel partner; the user does not need to pay for the payment for many times under two or even multiple payment systems, the times of the payment process are reduced, the safety of the payment process is improved, the shopping process is simplified, and the shopping experience of the user is also improved. And sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information. By acquiring the branch account information, the hotel partner and the hotel can conveniently compare bills, and errors are avoided.
In one possible real-time manner, as shown in fig. 3, the embodiment of the present application provides an electronic device, which includes a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320, and when the processor 320 executes the computer program 311, the electronic device implements: acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information; determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner; and sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information.
In a possible real-time manner, the embodiment of the present application provides a computer-readable storage medium 400, on which a computer program 411 is stored, and when executed by a processor, the computer program 411 implements: acquiring commodity information required by a user, wherein the commodity information comprises commodity source information and price information; determining a data receiving end based on the commodity source information, wherein the data receiving end comprises a hotel and a hotel partner; and sending a settlement instruction to the data receiving end based on the price information to obtain the branch account information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. 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 this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 an object oriented programming language such as Java, Smalltalk, C + + or 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, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, 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).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:基于区块链的支付业务处理方法及装置