Summary of the invention
Fundamental purpose of the present invention is to provide a kind of room control method and device, to solve in prior art the problem of manually carrying out room and controlling easily to make mistakes.
To achieve these goals, according to an aspect of the embodiment of the present invention, a kind of room control method is provided.Comprise according to room of the present invention control method: obtain the order status from the order subscribing channel;
Judge that described order status is as paying or completing; If described order status is describedly to pay, then generate the password opening room, wherein, after the described password of generation, busy in the time of answering the room state in room to be revised as described codon pair to indicate at described order; And if described order status is describedly to complete, then delete the password in described unlatching room, wherein, after the described password of deletion, idle in the time of answering the room state in room to be revised as described codon pair to indicate at described order.Preferably, after the described password of deletion, idle in the time of answering the room state in room to be revised as described codon pair to indicate at described order.
Further, before obtaining the order status from the order subscribing channel, described room control method also comprises: obtain the form of described order and predetermined field; Obtain the order format preset and the order field of presetting; Be described default order format by the format mapping of described order, and described predetermined field is mapped as described default order field.
Further, if described order status is for pay, then generates the password opening room and comprise: the time of moving in and the time departure that obtain described order; When generating the password in described unlatching room, move in the entry-into-force time of time as described password using described, described time departure is as the out-of-service time of described password.
Further, in described order status for pay, after generating the password opening room, described room control method comprises: obtain the room quantity that described codon pair answers the room type in room; Described room quantity is subtracted 1, obtains the room quantity after deleting; Whether the room quantity after deleting described in judgement is 0; If described in delete after room quantity be 0, then close described reservation channel with stop described room type room make a reservation for.
Further, after generating the password opening room, the control method in described room also comprises: judge to move in the time described in described order and whether described time departure has amendment; If described in the time of moving in have amendment, then revise the described entry-into-force time of described password; And if described time departure has amendment, then revise the described out-of-service time of described password.
Further, after generating the password opening room, described room control method also comprises: the password in described unlatching room is handed down to user; And time departure arrive before the schedule time in, by described password be about to lost efficacy message be handed down to described user.
Further, before generating the password opening room, described room control method also comprises: from described order, extract the identity information of moving in user; And preserve described identity information.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of room control device.Comprise according to room of the present invention control device: the first acquiring unit, for obtaining the order status from the order subscribing channel; First judging unit, for judging that described order status is as paying or completing; Generation unit, in described order status be described pay time, generate and open the password in room, wherein, after the described password of generation, busy in the time of answering the room state in room to be revised as described codon pair to indicate at described order; And delete cells, in described order status be described complete time, delete the password in described unlatching room, wherein, after the described password of deletion, idle in the time of answering the room state in room to be revised as described codon pair to indicate at described order.
Further, described room control device also comprises: second acquisition unit, for before the order status obtaining described order, obtains the form of described order and predetermined field; 3rd acquiring unit, for the order field obtaining default order format and preset; Map unit, for being described default order format by the format mapping of described order, and is mapped as described default order field by described predetermined field.
Further, described generation unit comprises: acquisition module, for obtaining time of moving in and the time departure of described order; Determination module, for when generating the password in described unlatching room, moves in the entry-into-force time of time as described password using described, using the out-of-service time of described time departure as described password.
Further, described room control device comprises: the 4th acquiring unit, at described order for pay, generate open room password after, obtain the room quantity that described codon pair answers the room type in room; Computing unit, for described room quantity is subtracted 1, obtains the room quantity after deleting; Whether the second judging unit is 0 for the room quantity after deleting described in judging; Closing unit, when being 0 for the room quantity after described deleting, closing described reservation channel and makes a reservation for stop the room of described room type.
Further, the control device in described room also comprises: the 3rd judging unit, for after generating the password opening room, judges to move in the time described in described order and whether described time departure has amendment; Amendment unit, for when there is amendment the described time of moving in, revises the described entry-into-force time of described password; And when described time departure has amendment, revise the described out-of-service time of described password.
Further, described room control device also comprises: first issues unit, for after generating the password opening room, the password in described unlatching room is handed down to user; And second issues unit, in the schedule time before time departure arrives, the message that described password is about to lose efficacy is handed down to described user.
Further, described room control device also comprises: the 5th acquiring unit, for before generating the password opening room, extracts the identity information of moving in user from described order; And storage unit, for preserving described identity information.
According to inventive embodiments, adopt the order status obtained from the order subscribing channel, judge that order status is as paying or completing, if order status is for pay, then generate the password opening room, wherein, after the password has been generated, answered by codon pair the room state in room to be revised as within the time of order instruction busy, if and order status is for complete, then delete the password opening room, wherein, after deletion password, the room state in room is answered by codon pair to be revised as within the time of order instruction idle, can generating cipher according to the order received, and have people to move according to password determination room, and the room quantity corresponding to the room type corresponding to this order can be determined, to realize determining whether to receive the control of subscribing according to room quantity, thus avoid and manually the state in room is checked one by one, achieve while having saved human cost and the unified of room is controlled, thus solve in prior art the problem of manually carrying out room and controlling easily to make mistakes, reach the effect avoiding makeing mistakes.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in instructions of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments provide a kind of room control method.This room control method may be used for hotel, apartment, inn and hotel etc., by the electronic equipment such as mobile phone, computer, room is controlled, unified control can be carried out to the quantity of various house type, this room control method can receive the order from multiple channel, and the order of multiple channel is converted to unified order format controls.The password in room is generated, the generating cipher when room is moved in, and the room quantity that corresponding minimizing can be predetermined according to the state of order.The password generated, with entry-into-force time and out-of-service time, can utilize this password to open room between entry-into-force time and out-of-service time.Namely above-mentioned room controls without the need to manual operation, has saved human resources and ensure that the accuracy that room controls.
Fig. 1 is the process flow diagram of the room control method according to the embodiment of the present invention.As shown in Figure 1, this room control method comprises step S102 to step S108.
Step S102, obtains the order status from the order subscribing channel.Subscribing channel can be accommodation reservation website, can also be the foreground etc. in hotel, the official website in hotel and hotel, hotel.After receiving the order from reservation channel, obtain the order status of order.Order status can be paid, do not pay, complete states such as (refunded, cancel).
Step S104, judges that order status is as paying or completing.Can determine that whether corresponding room is idle according to order status.When order status is for paying, determine that the room that this order is corresponding is occupied, then close in the corresponding time period and subscribe channel to the reservation in the room corresponding to this order, thus avoid room and repeated to subscribe.Complete and comprised order and cancelled or checked out after moving in, do not paid at order, order being when having cancelled or checked out, having determined that the room that this order is corresponding is idle, can make a reservation for by subscribing channel.
Step S106, if order status is for pay, then generates and opens the password in room, and wherein, after the password has been generated, to be answered by codon pair the room state in room to be revised as busy within the time of order instruction/ take.After order is paid, generate the password opening room, the password in this unlatching room can be handed down to user by the mode such as SMS or internet message, and user can utilize the password in the unlatching room of generation open the door in room thus realize moving in.Busy state refers to that this room is scheduled or moved in, after generating the password opening room, and cannot be scheduled or move in the time that this room is indicated in order.
Step S108, if order status is for complete, then deletes the password opening room, wherein, after deletion password, is answered by codon pair the room state in room to be revised as within the time of order instruction idle.The password generated and room one_to_one corresponding, in order status for generating effective guest's password when paying, in order status for deleting corresponding password when completing, the not generating cipher when order status is for cancelling, therefore, whether there is corresponding password determination room state whether idle according to room.Namely after the password has been generated, the room determining corresponding to this password is in state that cannot be predetermined within the time indicated by order.After deletion password, determine that the room that this coded lock is corresponding is in the state that can subscribe within the time indicated by order, therefore, with the password opening room, the state residing for room is marked, thus achieve the monitoring to room state.Mark with the state in guest's codon pair room with the term of validity, and state room, room amount is done automatic Verification, deleted.Deleting password can be generate the process that random cipher covers original code, also can be delete door lock end guest password process (guest's password namely: the password being handed down to client after generating order according to order, guest's password has ageing based on the time period of moving in of order, exceedes to move in date guest password and cease to be in force automatically).
After order has paid, order status is paid the guest's password issuing simultaneously/generate the corresponding room of order; After order is quit the subscription of, delete original guest's password generated, order status changes to and quits the subscription of (complete, corresponding room state is idle) simultaneously; (check out) after order completes, guest's password lost efficacy; Guest's password is successfully enabled at the door lock end of correspondence first, and order status/room state changes to moves in.
Pass through above-described embodiment, generating cipher after order pays, password is deleted after order completes, whether idle condition is in by marking room with or without the effective guest's password of generation, thus the monitoring achieved room state, avoid and manually the state in room is checked one by one, achieve while having saved human cost and the unified of room is controlled, thus solve in prior art the problem of manually carrying out room and controlling easily to make mistakes, reach the effect avoiding makeing mistakes.The present embodiment can also carry out real-time checksum update to the quantity of state to the room type corresponding to this order in room further, and adds up the room quantity that can subscribe, to realize determining whether to continue to receive the control of subscribing according to room quantity.
Preferably, in order to realize can unifying to control to the order of multiple different channel, the order of multiple different channel can be changed, same order format is converted to make the order of multiple support channels, namely before obtaining the order status from the order subscribing channel, room control method also comprises: obtain the form of order and predetermined field; Obtain the order format preset and the order field of presetting; By the order format that the format mapping of order is default, and predetermined field is mapped as default order field.
Receive moving in order and this locality storage is carried out to order from each channel, carry out different conversions for different channels, and the order of different channel is converted to unified form.What can receive multiple support channels due to this room control method moves in order, therefore, can arrange different conversion regimes, such as, arranging special interface carry out order conversion to each channel when carrying out order conversion according to different channel.Can interface be increased when channel is subscribed in increase, achieve the reservation channel that interface flexibility is different.
Preferably, moving in and leaving for the ease of supervisory user, effective time of the password of generation can be set according to the time of moving in that order records and time departure, if namely order status is for pay, then generates the password opening room and comprise: the time of moving in and the time departure that obtain order; When generating the password opening room, using the entry-into-force time of the time of moving in as password, using the out-of-service time of time departure as password.
Using the entry-into-force time as password time of moving in that order extracts, time departure, as the out-of-service time of password, can utilize password to open room in the time period between entry-into-force time and out-of-service time.Such as, the time of moving in that order shows is the 12:00 of 2015-1-22, time departure is the 12:00 of 2015-1-23, be then the 12:00 of 2015-1-22 by the entry-into-force time of guest's password of generation, the out-of-service time of password is the 12:00 of 2015-1-23, then user can open room in the time period between the 12:00 of the 12:00 to 2015-1-23 of 2015-1-22, and the time user at this moment beyond section cannot use described guest's password to open door.
Particularly, after generating the password opening room, the control method in room also comprises: judge whether the time of moving in of order and time departure have amendment; If there is amendment the time of moving in, then the entry-into-force time of Modify password; And if time departure has amendment, then the out-of-service time of Modify password.When there are amendment time of moving in of order and time departure, the entry-into-force time of corresponding Modify password and out-of-service time.
Particularly, after generating the password opening room, room control method also comprises: the password opening room is handed down to user; And time departure arrive before the schedule time in, by password be about to lost efficacy message be handed down to user.After generating cipher, the password of generation can be sent to by the form of note or networking message the user moved in, user can open room according to password and move in; In the schedule time before the out-of-service time of password comes, send to user the information that password is about to inefficacy.Such as, after the password has been generated, the short message with password is sent to user.The time that password lost efficacy is the 12:00 of 2015-1-22, then can send to user the information that password is about to inefficacy at the 10:00 of 2015-1-22.
Preferably, after generating the effective guest's password opening room, this room control method comprises: obtain the room quantity that codon pair answers the room type in room; Room quantity is subtracted 1, obtains the room quantity after deleting; Judge whether the room quantity after deleting is 0; If the room quantity after deleting is 0, then closes and subscribe channel to stop the room of room type predetermined.
Such as, the room quantity in category-A type room is between 30, receive the order between the predetermined category-A type room 1 on the X of website, and this order completes payment, then generate the password opening room and send to user, the room quantity simultaneously upgrading category-A type room is 29.Now, the room quantity in category-A type room is not 0, can continue to receive each channel and subscribe category-A type room.But, if now the room quantity in category-A type room is 0, then closes and subscribe channel to stop the reservation in category-A type room.Now, user cannot by any channel predetermined category-A type room.
Similarly, quitting the subscription of after between category-A type room 1, the order status of reservation is updated to be quit the subscription of (completing), then now delete the password of generation, then this room does not have corresponding effective guest's password.The room quantity in category-A type room increases by 1, becomes 30 from 29.If after quitting the subscription of category-A type room, the quantity in the type room becomes 1 from 0, then open reservation channel and make a reservation for the room reopening room type, user can subscribe channel predetermined category-A type room by each.
In the above-described embodiments, whether effective password has been generated by detecting certain room, within the effective time of password, the room that this codon pair is answered is in seizure condition, correspondingly, within the effective time of password, the room amount of this room type is deleted automatically, therefore, whether have the room amount of password to corresponding room to do before the deadline by detection room automatically to delete, and all reservation channels are automatically closed when room amount is 0, predetermined channel is reopened when room amount is not 0, thus the monitoring achieved room quantity, solve in prior art and the problem of easily makeing mistakes is controlled to room.It should be noted that, to moving in the room of rear departure without the need to discharging room amount, because the room amount of checking out the same day is the room amount after calculating according to existing order, having comprised the quantity in the room moving in rear departure.
Further, for the room state of moving in rear departure, first system can judge corresponding order, and when judged result is the departure time of departure time early than order record, system will discharge the room amount between actual departure time and order departure time automatically.
Preferably, carry out self-service moving in for the ease of user, the identity information of all right recording user of this room control method, so that user carries out self-service moving in, namely before generating the password opening room, room control method also comprises: from order, extract the identity information of moving in user; And preservation identity information.When user is by the reservation of each channel, need user to input identity information that identification card number etc. proves to move in user identity, in order status for after paying, preserve the identity information of user, namely identity information is corresponding with room preserves.
It should be noted that, when generating cipher, not only can generate the operable password of user (i.e. effective guest's password), other passwords can also be generated.Such as, for the password of cleaning worker, for the maintain cryptographic etc. of maintainer.Password for cleaning worker can generate when the order status of user is for completing, also can when user proposes to keep a public place clean demand automatic generating cipher, and effective duration of this password is shorter.Maintainer can utilize maintain cryptographic to open door to carry out the maintenance activitys such as finishing.In addition also have house keeper/administrator password etc., can independently carry out renewal when any demand by trade company and enable/use.
The operation of each password when opening corresponding door can be stored in Operation Log, so that monitor the using state in room in real time.In addition, the information such as the electronic coupons of user be checked and be arranged to this room control method can also, and upgrade the cleaning state in room, predetermined or lodging state and inquire about, realizes monitoring room and controlling in real time.
Pass through above-described embodiment, can in real time to the using state in room, clean conditions, cryptographic state and subscribe the states such as channel and unify to control, and judge that room is in idle condition or seizure condition according to the effective guest's password in room generated, avoid repeating subscribing or mistake predetermined, and then avoid artificial nucleus to increase caused cost of labor and the increase of error rate.
To sum up, this room control method can receive moving in order and carrying out this locality storage to order from each channel, order is carried out State Transferring, can for different channels, make order status correspondence table, specialize interface does order status conversion, and sequence information can be used for managerial personnel to carry out checking/operating; If the order status after changing pays (becoming pay status from state to be paid) into order: generate guest's key (password); Call short message interface, transmitting short message, to consumer, informs enabling key (password); Simultaneously after the door-opening password that certain room generated in effective time being detected, according to moving in/checking out encrypted message, can do one automatically delete the room amount in corresponding room, if room amount is 0, then the order channel in certain period under same room is closed.If the order status after changing is quit the subscription of into order: delete guest's key that this order is corresponding, room will turn back to can sell state; If the moving in of order/departure time changes: call amendment unit interface, amendment key move in/the departure time, thus extend/shorten effective opening time of key.
After guest moves in, that checks that module checks room by daily record moves in state.Move in period, if room needs cleaning, enable management key (for cleaning), cleaning worker can enter into room and sweeps by use management key, manages key and lost efficacy after a period of time.A period of time before departure time arrives, guest will receive the information reminding that key is about to lose efficacy, and the time one arrives, and guest's key can lose efficacy immediately.The key generated can arrange effective life according to the details of each order.Such as: the time limit of pay invoice is 12 noon on Dec 15 2000 time of moving in; Departure time is 12 noon on Dec 17th, 2000; The term of life then generating key is exactly 12 noon to 2000 on Dec 15th, 2000 12 noon in 17, on Dec.
This room control method verifies state and the content of order in real time, such as: if order is " paying " state, then will enable guest's password, and generates corresponding password and is handed down to consumer by note; If order status is " quitting the subscription of ", recognize order quit the subscription of after can guest's password of having generated of automatic deletion; If the moving in of order/departure time there occurs change, system in verification to moving in/departure time change after can automatically revise key (password) term of validity according to the sequence information after upgrading.
The embodiment of the present invention additionally provides a kind of room control device.This room control device can realize its function by computing machine.It should be noted that, the room control device of the embodiment of the present invention may be used for performing the room control method that the embodiment of the present invention provides, and the room control device that the room control method of the embodiment of the present invention also can be provided by the embodiment of the present invention performs.
Fig. 2 is the schematic diagram of the room control device according to the embodiment of the present invention.As shown in Figure 2, this room control device comprises: the first acquiring unit 10, first judging unit 30, generation unit 50 and delete cells 70.
First acquiring unit 10 is for obtaining the order status from the order subscribing channel.Subscribing channel can be accommodation reservation website, can also be the foreground etc. in hotel, the official website in hotel and hotel, hotel.After receiving the order from reservation channel, obtain the order status of order.Order status can be paid, do not pay, complete states such as (refunded, cancel).
First judging unit 30 is for judging that order status is paid or completed.Can determine that whether room is idle according to order status.When order status is for paying, determine that the room that this order is corresponding is occupied, then close in the corresponding time period and subscribe channel to the reservation in the room corresponding to this order, thus avoid room and repeated to subscribe.Completing and comprised order and cancelled or checked out after moving in, when order is not paid or order cancels, determined that the room that this order is corresponding is idle, can make a reservation for by subscribing channel.
Generation unit 50, for when order status is for paying, generates and opening the password in room, and wherein, after the password has been generated, to be answered by codon pair the room state in room to be revised as busy within the time of order instruction/ take.After order is paid, generate the password opening room, the password in this unlatching room can be handed down to user by the mode such as SMS or internet message, and the door that user can utilize the password in the unlatching room of generation to open room realizes moving in.Busy state refers to that this room is scheduled or moved in, after generating the password opening room, and cannot be scheduled or move in the time that this room is indicated in order.
Delete cells 70 is for, when (such as cancel, refunded) deleting the password of opening room, wherein, codon pair being answered the room state in room be revised as during time of order instruction idle for completing in order status.The password generated and room one_to_one corresponding, in order status for generating effective guest's password when paying, in order status for deleting corresponding password when completing (refunded), the not generating cipher when order status is for cancelling, therefore, corresponding effective guest's password determination room whether can be had whether idle according to room.Namely after the password has been generated, the room determining corresponding to this password is in state that cannot be predetermined within the time indicated by order.After deletion password, determine that the room that this coded lock is corresponding is in the state that can subscribe within the time indicated by order, therefore, with the password opening room, the state residing for room is marked, thus achieve the monitoring to room state.
Mark with the state in guest's codon pair room with the term of validity, and state room, room amount is done automatic Verification, deleted.Deleting password can be generate the process that random cipher covers original code, also can be delete door lock end guest password process (guest's password namely: the password being handed down to client after generating order according to order, guest's password has ageing based on the time period of moving in of order, exceedes to move in date guest password and cease to be in force automatically).
After order has paid, order status is paid the guest's password issuing simultaneously/generate the corresponding room of order; After order is quit the subscription of, delete original guest's password generated, order status changes to and quits the subscription of (complete, corresponding room state is idle) simultaneously; (check out) after order completes, guest's password lost efficacy; Guest's password is successfully enabled at the door lock end of correspondence first, and order status changes to moves in.
Pass through above-described embodiment, generating cipher after order pays, password is deleted after order completes, whether idle condition is in by marking room with or without the effective guest's password of generation, thus the monitoring achieved room state, avoid and manually the state in room is checked one by one, achieve while having saved human cost and the unified of room is controlled, thus solve in prior art the problem of manually carrying out room and controlling easily to make mistakes, reach the effect avoiding makeing mistakes.The present embodiment can also upgrade the quantity of state to the room type corresponding to this order in room further, and adds up the room quantity that can subscribe, to realize determining whether to continue to receive the control of subscribing according to room quantity.
Preferably, in order to realize can unifying control and management to the order of multiple different channel, the order of multiple different channel can be changed, same order format is converted to make the order of multiple support channels, namely room control device also comprises: second acquisition unit, for before the order status obtaining order, obtain the form of order and predetermined field; 3rd acquiring unit, for the order field obtaining default order format and preset; Map unit, for being default order format by the format mapping of order, and is mapped as default order field by predetermined field.
Receive moving in order and this locality storage is carried out to order from each channel, carry out different conversions for different channels simultaneously, and the order of different channel is converted to unified form.What can receive multiple support channels due to this room control method moves in order, therefore, can arrange different conversion regimes, such as, arranging special interface carry out order conversion to each channel when carrying out order conversion according to different channel.Can interface be increased when channel is subscribed in increase, achieve the reservation channel that interface flexibility is different.
Preferably, moving in and leaving for the ease of supervisory user, can arrange effective time of the password of generation according to the time of moving in that order records and time departure, namely generation unit comprises: acquisition module, for obtaining time of moving in and the time departure of order; Determination module, for when generating the password opening room, using the entry-into-force time of the time of moving in as password, using the out-of-service time of time departure as password.
Using the entry-into-force time as password time of moving in that order extracts, time departure, as the out-of-service time of password, can utilize password to open room in the time period between entry-into-force time and out-of-service time.Such as, the time of moving in that order shows is the 12:00 of 2015-1-22, time departure is the 12:00 of 2015-1-23, be then the 12:00 of 2015-1-22 by the entry-into-force time of the password of generation, the out-of-service time of password is the 12:00 of 2015-1-23, then user can open room in the time period between the 12:00 of the 12:00 to 2015-1-23 of 2015-1-22, and the time user at this moment beyond section uses inefficacy password to open door.
Particularly, the control device in room also comprises: the 3rd judging unit, for after generating the password opening room, judges whether the time of moving in of order and time departure have amendment; Amendment unit, for when there is amendment the time of moving in, the entry-into-force time of Modify password; And when time departure has amendment, the out-of-service time of Modify password.When there are amendment time of moving in of order and time departure, the entry-into-force time of corresponding Modify password and out-of-service time.
Particularly, room control device also comprises: first issues unit, for after generating the password opening room, the password opening room is handed down to user; And second issues unit, in the schedule time before time departure arrives, the message that password is about to lose efficacy is handed down to user.
After generating cipher, the password of generation can be sent to by the form of note or networking message the user moved in, user can open room according to password and move in; In the schedule time before the out-of-service time of password comes, send to user the information that password is about to inefficacy.Such as, after the password has been generated, the short message with password is sent to user.The time that password lost efficacy is the 12:00 of 2015-1-22, then send to user the information that password is about to inefficacy at the 10:00 of 2015-1-22.
Preferably, room control device comprises: the 4th acquiring unit, for after generating the effective guest's password opening room, obtains the room quantity that codon pair answers the room type in room; Computing unit, for room quantity is subtracted 1, obtains the room quantity after deleting; Second judging unit, for judging whether the room quantity after deleting is 0; Closing unit, when being 0 for the room quantity after deleting, the reservation channel of closing under a certain period makes a reservation for stop the room of room type.
Such as, the room quantity in category-A type room is between 30, receive the order between the predetermined category-A type room 1 on the X of website, and this order completes support, then generate the password opening room and send to user, the room quantity simultaneously upgrading category-A type room is 29.Now, the room quantity in category-A type room is not 0, can continue to receive each channel and subscribe category-A type room.But, if now the room quantity in category-A type room is 0, then closes and subscribe channel to stop the reservation in category-A type room.Now, user cannot predetermined category-A type room through various channels.
Similarly, quitting the subscription of after between category-A type room 1, the order status of reservation is updated to be quit the subscription of, then now delete the password of generation, then this room does not have corresponding effective guest's password.The room quantity in category-A type room increases by 1, becomes 30 from 29.If after quitting the subscription of category-A type room, the quantity in the type room becomes 1 from 0, then open reservation channel and make a reservation for the room reopening room type, user can by subscribing channel predetermined category-A type room.
In the above-described embodiments, whether effective password has been generated by detecting certain room, within the effective time of password, the room that this codon pair is answered is in seizure condition, and after door-opening password lost efficacy, the room that this codon pair is answered is in idle condition automatically, correspondingly, within the effective time of password, the room amount of this room type reduces automatically, after password lost efficacy, automatically the room amount of this room type is increased, therefore, whether have the room amount of password to corresponding room to do before the deadline by detection room automatically to delete, and all reservation channels are automatically closed when room amount is 0, predetermined channel is reopened when room amount is not 0, thus the monitoring achieved room quantity, solve in prior art and the problem of easily makeing mistakes is controlled to room.It should be noted that, to moving in the room of rear departure without the need to discharging room amount, because the room amount of checking out the same day is the room amount after calculating according to existing order, having comprised the quantity in the room moving in rear departure.
Preferably, carry out self-service moving in for the ease of user, the identity information of all right recording user automatically of this room control device, namely room control device also comprises: the 5th acquiring unit, for before generating the password opening room, from order, extract the identity information of moving in user; And storage unit, for preserving identity information.
When user is by the reservation of each channel, need user to input identity information that identification card number etc. proves to move in user identity, in order status for after paying, preserve the identity information of user, namely identity information is corresponding with room preserves.
It should be noted that, when generating cipher, not only can generate the operable password of user (effective guest's password), other passwords can also be generated.Such as, for the password of cleaning worker, for the maintain cryptographic etc. of maintainer.Password for cleaning worker can generate when the order status of user is for completing, also can when user proposes to keep a public place clean demand automatic generating cipher, and effective duration of this password is shorter.Maintainer can utilize maintain cryptographic to open door to carry out the maintenance activitys such as finishing.
Yet another embodiment of the invention also specifically provides a kind of room control system.This room control system comprises room as above control device, includes dweller's Registration Module in addition: for checking the identity informations such as guest's I.D. of coming from order; Module is checked in daily record: for checking the daily records such as the Password Operations that order is corresponding, and trade company can monitor the service condition issuing the enabling of password/using state and room in real time; Electronic ticket administration module: for checking/arranging consumer electronics's reward voucher; Room state data module: the more new management service condition in room (i.e. certain room open room, close room state), distribution state, cleaning state, predetermined/lodging state being carried out to data, and room state data are stored; Room state enquiry module: the service condition, cleaning state, predetermined/lodging state etc. in room are inquired about; And interactive module: and data message between system/module/unit is mutual.
Pass through above-described embodiment, can in real time to the using state in room, clean conditions, cryptographic state and subscribe the states such as channel and unify to control, and judge that room is in idle condition or seizure condition according to the room password generated, avoid repeating subscribing or mistake predetermined, and then avoid artificial nucleus to increase caused cost of labor and the increase of error rate.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the division of such as unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform each embodiment method of the present invention.And aforesaid storage medium comprises: USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.