面试预约申请
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
public enum RoomStatus {
|
||||
WAIT_FOR_OPEN(0, "待开放"),
|
||||
OPEN(1, "已开放"),
|
||||
CLOSED(2, "已关闭");
|
||||
|
||||
private final int code;
|
||||
private final String description;
|
||||
|
||||
RoomStatus(int code, String description) {
|
||||
this.code = code;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ public enum WorkflowStatusEnum {
|
||||
|
||||
//预约面试阶段
|
||||
RESERVATION_0("0","待预约"),
|
||||
RESERVATION_1("1","待审核"),
|
||||
RESERVATION_1("1","预约时间待审核"),
|
||||
RESERVATION_7("7","到期未预约"),
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
@@ -241,4 +243,15 @@ public class StringUtil extends org.apache.commons.lang3.StringUtils {
|
||||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成房间号
|
||||
* @param dateTime
|
||||
* @return
|
||||
*/
|
||||
public static String generateRoomId(String dateTime) {
|
||||
//YYYY-MM-DD HH:mm:ss 转换成yyyyMMddHHmmss
|
||||
String format = DateUtil.format(DateUtil.parse(dateTime, "YYYY-MM-DD HH:mm:ss"), "yyyyMMddHHmmss");
|
||||
String numbers = RandomUtil.randomNumbers(5);
|
||||
return format + numbers;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user