mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-11-03 14:04:49 +08:00
更新数据库结构,重写订单接口,添加注释
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package cn.mafangui.hotel.utils;
|
||||
|
||||
public class RoomStaticUtil {
|
||||
public static final int UNAVAILABLE = 0;
|
||||
public static final int AVAILABLE = 1;
|
||||
public static final int OCCUPIED = 2;
|
||||
public static final int IN_USE = 3;
|
||||
public static final String[] STATUS = {"UNAVAILABLE","AVAILABLE","OCCUPIED","IN_USE",};
|
||||
|
||||
public RoomStaticUtil(){
|
||||
|
||||
}
|
||||
public static String getRoomStatic(){
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
package cn.mafangui.hotel.utils;
|
||||
|
||||
public class StaticString {
|
||||
public static final String CODE = "code";
|
||||
public static final String STATUS = "status";
|
||||
public static final String DATA = "data";
|
||||
|
||||
/**
|
||||
* 工作人员角色
|
||||
*/
|
||||
public static final String ADMIN = "admin";
|
||||
public static final String OPERATOR = "operator";
|
||||
|
||||
/**
|
||||
* 房间状态
|
||||
* 不可用
|
||||
* 空闲可用
|
||||
* 已被预订
|
||||
* 已被入住
|
||||
*/
|
||||
public static final int UNAVAILABLE = 0;
|
||||
public static final int AVAILABLE = 1;
|
||||
public static final int OCCUPIED = 2;
|
||||
public static final int IN_USE = 3;
|
||||
/**
|
||||
* 订单状态
|
||||
* 被用户删除-3
|
||||
* 超时 -2
|
||||
* 被取消-1
|
||||
* 未付款0
|
||||
* 已付款1
|
||||
* 已入住2
|
||||
*
|
||||
*/
|
||||
public static final int WAS_DELETE = -3;
|
||||
public static final int OVERTIME = -2;
|
||||
public static final int WAS_CANCELED = -1;
|
||||
public static final int UNPAID = 0;
|
||||
public static final int PAID = 1;
|
||||
public static final int WAS_USED = 2;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user