排队取号保存号码

This commit is contained in:
2024-09-13 15:14:03 +08:00
parent 5e8601745b
commit a73530df84
3 changed files with 46 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ public interface RedisConstant {
String LOCK_KEY = "LOCK:";
String CREATE_ORDER = "CREATE_ORDER";
// 排队取号全局号码
String TABLE_CALL_NUMBER = "TABLE_CALL_NUMBER:";
static String getCurrentOrderKey(String tableId, String shopId) {
return CURRENT_TABLE_ORDER + shopId + ":" + tableId;
@@ -37,4 +39,8 @@ public interface RedisConstant {
}
return key.toString();
}
static String getTableCallNumKey(Integer shopId, Integer callTableId) {
return TABLE_CALL_NUMBER + shopId + ":" + callTableId;
}
}