查询忙闲信息

This commit is contained in:
俞扬
2023-06-17 18:15:25 +08:00
parent a5ae55675a
commit dcb3d1097c
12 changed files with 520 additions and 1 deletions

View File

@@ -60,7 +60,9 @@ public enum ErrorCodeEnum {
INTERVIEW_ENTER_FAIL(1021101, "进入面试间失败", null),
DINGDING_USER_NOT_EXIST(1021102, "用户钉钉信息不存在,无法发起资质审核!", null),
INTERVIEW_NOT_EXIST(1021103, "面试信息不存在!", null),
INTERVIEW_AND_PARTNER_ID_IS_NULL(1021104, "加盟商用户ID和面试官ID不能同时为空", null),
INTERVIEW_PLAN_IS_NULL(1021105, "未查询到相关面试安排!", null),
DATE_PARAMS_IS_ERROR(1021106, "日期参数错误!", null),
SIGN_FAIL(600000, "验签失败", null),
GET_ACCESSTOKEN_ERROR(600001, "获取小程序TOKEN错误", null),
NEW_MOBILE_HAS_EXIST(600002,"加盟商用户信息已存在",null),

View File

@@ -220,4 +220,25 @@ public class StringUtil extends org.apache.commons.lang3.StringUtils {
*/
INT, STRING, ALL;
}
/**
* 左补位
*
* @param str 字符串
* @param length 总位数
* @return Result 补位后的字符串
*/
public static String addZeroForNum(String str, int length) {
int strLen = str.length();
if (strLen < length) {
while (strLen < length) {
StringBuffer sb = new StringBuffer();
sb.append("0").append(str);
str = sb.toString();
strLen++;
}
}
return str;
}
}