B端 部分接口2
This commit is contained in:
@@ -52,6 +52,8 @@ public enum ErrorCodeEnum {
|
||||
|
||||
|
||||
LINE_ID_IS_NOT_EXIST(500001, "线索ID不存在!", null),
|
||||
WORK_FLOW_STAGE_PASS_ERROR(500002, "通过错误,非对应阶段!", null),
|
||||
PARTNER_USER_NOT_EXIST(500002, "加盟商用户信息不存在!", null),
|
||||
|
||||
INTERVIEW_ENTER_FAIL(1021101, "进入面试间失败", null),
|
||||
;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/6/9 16:17
|
||||
@@ -21,6 +23,18 @@ public enum WorkflowStageEnum {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 每个大节点对应的子节点最后一个流程
|
||||
* @return
|
||||
*/
|
||||
public static final HashMap<String,String> getWorkflowStageMap(){
|
||||
HashMap<String, String> result = new HashMap<>();
|
||||
result.put(INTENT.getCode(),WorkflowStatusEnum.INTENT_3.getCode());
|
||||
result.put(RESERVATION.getCode(),WorkflowStatusEnum.RESERVATION_6.getCode());
|
||||
result.put(INTERVIEW.getCode(),WorkflowStatusEnum.INTERVIEW_6.getCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import java.time.*;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
@@ -32,4 +34,22 @@ public class CoolDateUtils {
|
||||
now.set(Calendar.DATE, now.get(Calendar.DATE) + day);
|
||||
return now.getTime();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* n天后 的最大时间 20230613 2天后最大时间---->2023-06-15 23:59:59
|
||||
* @param day
|
||||
* @return
|
||||
*/
|
||||
public static Date getDateFormatDay(int day){
|
||||
LocalDate today = LocalDate.now();
|
||||
LocalDate thirdDay = today.plusDays(day);
|
||||
LocalDateTime thirdDayMidnight = LocalDateTime.of(thirdDay, LocalTime.MIDNIGHT);
|
||||
LocalDateTime thirdDay235959 = thirdDayMidnight.with(LocalTime.MAX);
|
||||
ZonedDateTime zonedDateTime = ZonedDateTime.of(thirdDay235959, ZoneId.systemDefault());
|
||||
return Date.from(zonedDateTime.toInstant());
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user