小程序端预约时间列表修改
This commit is contained in:
@@ -16,12 +16,12 @@ public class GetFreeBusyListReq {
|
|||||||
private String startDate;
|
private String startDate;
|
||||||
@ApiModelProperty(value = "结束时间",required = true)
|
@ApiModelProperty(value = "结束时间",required = true)
|
||||||
private String endDate;
|
private String endDate;
|
||||||
@ApiModelProperty("线索id(C端使用)")
|
@ApiModelProperty(value = "线索id", required = true)
|
||||||
private String lineId;
|
private String lineId;
|
||||||
@ApiModelProperty("加盟商用户ID(C端使用,与面试官id两个字段中必传一个,该字段传值时,线索id必传)")
|
@ApiModelProperty(value = "加盟商用户ID", required = true)
|
||||||
private String partnerId;
|
private String partnerId;
|
||||||
@ApiModelProperty("面试官ID(B端使用,如果该字段传了,就查询该面试官的日程忙闲信息,否则查询加盟商对应的面试官的信息)")
|
@ApiModelProperty(value = "面试官ID", required = false)
|
||||||
private String interviewerId;
|
private String interviewerId;
|
||||||
@ApiModelProperty("是否是PC端请求")
|
@ApiModelProperty(value = "是否是PC端请求", required = true)
|
||||||
private Boolean whetherPC;
|
private Boolean whetherPC;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ package com.cool.store.service;
|
|||||||
import com.cool.store.dto.partner.EnterInterviewDto;
|
import com.cool.store.dto.partner.EnterInterviewDto;
|
||||||
import com.cool.store.dto.partner.LineQueryInterviewDto;
|
import com.cool.store.dto.partner.LineQueryInterviewDto;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
|
import com.cool.store.request.GetFreeBusyListReq;
|
||||||
import com.cool.store.request.ModifyInterviewTimeReq;
|
import com.cool.store.request.ModifyInterviewTimeReq;
|
||||||
import com.cool.store.vo.EnterInterviewVO;
|
import com.cool.store.vo.EnterInterviewVO;
|
||||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||||
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
||||||
|
import com.cool.store.vo.interview.GetFreeBusyListVO;
|
||||||
|
|
||||||
public interface PartnerInterviewService {
|
public interface PartnerInterviewService {
|
||||||
|
|
||||||
@@ -39,5 +41,10 @@ public interface PartnerInterviewService {
|
|||||||
void modifyInterviewTime(ModifyInterviewTimeReq request) throws ApiException;
|
void modifyInterviewTime(ModifyInterviewTimeReq request) throws ApiException;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取面试预约时间列表
|
||||||
|
* @param request {@link GetFreeBusyListReq}
|
||||||
|
* @return {@link GetFreeBusyListVO}
|
||||||
|
*/
|
||||||
|
GetFreeBusyListVO getFreeBusyList(GetFreeBusyListReq request);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.cool.store.dao.HyInterviewDAO;
|
|||||||
import com.cool.store.dto.log.ModifyInterviewTimeDTO;
|
import com.cool.store.dto.log.ModifyInterviewTimeDTO;
|
||||||
import com.cool.store.dto.partner.EnterInterviewDto;
|
import com.cool.store.dto.partner.EnterInterviewDto;
|
||||||
import com.cool.store.dto.partner.LineQueryInterviewDto;
|
import com.cool.store.dto.partner.LineQueryInterviewDto;
|
||||||
|
import com.cool.store.entity.HyPartnerInterviewBookSituation;
|
||||||
import com.cool.store.entity.HyPartnerInterviewDO;
|
import com.cool.store.entity.HyPartnerInterviewDO;
|
||||||
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
import com.cool.store.entity.HyPartnerInterviewPlanDO;
|
||||||
import com.cool.store.enums.ErrorCodeEnum;
|
import com.cool.store.enums.ErrorCodeEnum;
|
||||||
@@ -18,7 +19,9 @@ import com.cool.store.exception.ApiException;
|
|||||||
import com.cool.store.exception.ServiceException;
|
import com.cool.store.exception.ServiceException;
|
||||||
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
import com.cool.store.mapper.HyPartnerInterviewMapper;
|
||||||
import com.cool.store.mapper.HyPartnerInterviewPlanMapper;
|
import com.cool.store.mapper.HyPartnerInterviewPlanMapper;
|
||||||
|
import com.cool.store.request.GetFreeBusyListReq;
|
||||||
import com.cool.store.request.ModifyInterviewTimeReq;
|
import com.cool.store.request.ModifyInterviewTimeReq;
|
||||||
|
import com.cool.store.service.InterviewService;
|
||||||
import com.cool.store.service.LogService;
|
import com.cool.store.service.LogService;
|
||||||
import com.cool.store.service.PartnerInterviewService;
|
import com.cool.store.service.PartnerInterviewService;
|
||||||
import com.cool.store.utils.CoolDateUtils;
|
import com.cool.store.utils.CoolDateUtils;
|
||||||
@@ -27,14 +30,21 @@ import com.cool.store.vo.EnterInterviewVO;
|
|||||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||||
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
||||||
import com.cool.store.vo.PartnerUserInfoVO;
|
import com.cool.store.vo.PartnerUserInfoVO;
|
||||||
|
import com.cool.store.vo.interview.CalendarInfo;
|
||||||
|
import com.cool.store.vo.interview.FreeBusyInfo;
|
||||||
|
import com.cool.store.vo.interview.GetFreeBusyListVO;
|
||||||
import com.cool.store.vo.interview.InterviewVO;
|
import com.cool.store.vo.interview.InterviewVO;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -49,6 +59,9 @@ public class PartnerInterviewServiceImpl implements PartnerInterviewService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private HyInterviewDAO interviewDAO;
|
private HyInterviewDAO interviewDAO;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private InterviewService interviewService;
|
||||||
|
|
||||||
@Value("${trtc.sdkAppId}")
|
@Value("${trtc.sdkAppId}")
|
||||||
private Long sdkAppId;
|
private Long sdkAppId;
|
||||||
|
|
||||||
@@ -204,4 +217,9 @@ public class PartnerInterviewServiceImpl implements PartnerInterviewService {
|
|||||||
logService.recordPartnerBizLog(operator,interviewInfo.getPartnerLineId(), OperateTypeEnum.MODIFY_INTERVIEW_TIME,log);
|
logService.recordPartnerBizLog(operator,interviewInfo.getPartnerLineId(), OperateTypeEnum.MODIFY_INTERVIEW_TIME,log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GetFreeBusyListVO getFreeBusyList(GetFreeBusyListReq request) {
|
||||||
|
return interviewService.getFreeBusyList(request);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,16 +17,22 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
* @Author: young.yu
|
* @Author: young.yu
|
||||||
* @Date: 2023-06-16 13:06
|
* @Date: 2023-06-16 13:06
|
||||||
* @Description:
|
* @Description:
|
||||||
|
* @deprecated {@link InterviewController}
|
||||||
*/
|
*/
|
||||||
@Api(tags = "飞书相关接口")
|
@Api(tags = "飞书相关接口")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping({"/feishu"})
|
@RequestMapping({"/feishu"})
|
||||||
|
@Deprecated
|
||||||
public class FeiShuController {
|
public class FeiShuController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated {@link InterviewController#getFreeBusyList(GetFreeBusyListReq)}
|
||||||
|
*/
|
||||||
@Autowired
|
@Autowired
|
||||||
private FeiShuService feiShuService;
|
private FeiShuService feiShuService;
|
||||||
@PostMapping("/interviewer/freebusy/list")
|
@PostMapping("/interviewer/freebusy/list")
|
||||||
@ApiOperation("查询日程忙闲信息")
|
@ApiOperation("查询日程忙闲信息")
|
||||||
|
@Deprecated
|
||||||
public ResponseResult<GetFreeBusyListVO> getFreeBusyList(@RequestBody GetFreeBusyListReq request) throws ApiException {
|
public ResponseResult<GetFreeBusyListVO> getFreeBusyList(@RequestBody GetFreeBusyListReq request) throws ApiException {
|
||||||
GetFreeBusyListVO getFreeBusyListVO= feiShuService.getFreeBusyList(request);
|
GetFreeBusyListVO getFreeBusyListVO= feiShuService.getFreeBusyList(request);
|
||||||
return ResponseResult.success(getFreeBusyListVO);
|
return ResponseResult.success(getFreeBusyListVO);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import com.cool.store.dto.partner.PartnerGetPassLetterDetailDto;
|
|||||||
import com.cool.store.dto.partner.PartnerQueryInterviewDto;
|
import com.cool.store.dto.partner.PartnerQueryInterviewDto;
|
||||||
import com.cool.store.exception.ApiException;
|
import com.cool.store.exception.ApiException;
|
||||||
import com.cool.store.request.CreateAppointmentReq;
|
import com.cool.store.request.CreateAppointmentReq;
|
||||||
|
import com.cool.store.request.GetFreeBusyListReq;
|
||||||
import com.cool.store.request.ModifyInterviewTimeReq;
|
import com.cool.store.request.ModifyInterviewTimeReq;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
import com.cool.store.service.InterviewService;
|
import com.cool.store.service.InterviewService;
|
||||||
@@ -14,6 +15,7 @@ import com.cool.store.vo.EnterInterviewVO;
|
|||||||
import com.cool.store.vo.PartnerInterviewInfoVO;
|
import com.cool.store.vo.PartnerInterviewInfoVO;
|
||||||
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
import com.cool.store.vo.PartnerPassLetterDetailVO;
|
||||||
import com.cool.store.vo.interview.CreateAppointmentVO;
|
import com.cool.store.vo.interview.CreateAppointmentVO;
|
||||||
|
import com.cool.store.vo.interview.GetFreeBusyListVO;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -37,6 +39,13 @@ public class InterviewController {
|
|||||||
// return ResponseResult.success(interviewService.queryByPartnerId(dto.getPartnerId()));
|
// return ResponseResult.success(interviewService.queryByPartnerId(dto.getPartnerId()));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
@PostMapping("/freebusy/list")
|
||||||
|
@ApiOperation("查询各预约时间段情况")
|
||||||
|
public ResponseResult<GetFreeBusyListVO> getFreeBusyList(@RequestBody GetFreeBusyListReq request) throws ApiException {
|
||||||
|
GetFreeBusyListVO getFreeBusyListVO= interviewService.getFreeBusyList(request);
|
||||||
|
return ResponseResult.success(getFreeBusyListVO);
|
||||||
|
}
|
||||||
|
|
||||||
@PostMapping("/queryByPartnerLineId")
|
@PostMapping("/queryByPartnerLineId")
|
||||||
@ApiOperation("根据线索id查询面试信息")
|
@ApiOperation("根据线索id查询面试信息")
|
||||||
public ResponseResult<PartnerInterviewInfoVO> queryByPartnerLineId(@RequestBody LineQueryInterviewDto dto) throws ApiException {
|
public ResponseResult<PartnerInterviewInfoVO> queryByPartnerLineId(@RequestBody LineQueryInterviewDto dto) throws ApiException {
|
||||||
|
|||||||
Reference in New Issue
Block a user