This commit is contained in:
zhangchenbiao
2024-04-07 19:33:14 +08:00
parent 14947cd31d
commit 1a960a907b
3 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
package com.cool.store.request;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @author zhangchenbiao
* @FileName: InterviewUploadVideoRequest
* @Description:
* @date 2024-04-07 19:31
*/
@Data
public class InterviewUploadVideoRequest {
@NotNull
@ApiModelProperty("面试id")
private Long interviewId;
@NotNull
@NotBlank
@ApiModelProperty("视频链接")
private List<String> videoUrlList;
}

View File

@@ -99,7 +99,7 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
}
List<AppointmentTimeListVO> resultList = new ArrayList<>();
while (appointmentEndDate.isAfter(appointmentStartDate)){
while (appointmentEndDate.isAfter(appointmentStartDate) || appointmentStartDate.equals(appointmentEndDate)){
List<AppointmentTimeVO> appointmentTime = getAppointmentTime(lineId, interviewType, appointmentStartDate);
AppointmentTimeListVO appointmentTimeList = new AppointmentTimeListVO(appointmentStartDate.toString(), appointmentStartDate.getDayOfWeek().getValue(), appointmentTime);
resultList.add(appointmentTimeList);

View File

@@ -4,6 +4,7 @@ import com.cool.store.context.CurrentUserHolder;
import com.cool.store.enums.InterviewUserTypeEnum;
import com.cool.store.exception.ApiException;
import com.cool.store.request.AppointmentTimeRequest;
import com.cool.store.request.InterviewUploadVideoRequest;
import com.cool.store.request.LineInterviewPageRequest;
import com.cool.store.request.ModifyInterviewerRequest;
import com.cool.store.response.ResponseResult;
@@ -92,21 +93,21 @@ public class PCLineInterviewController {
@ApiOperation("结束面试")
@GetMapping("/finish")
public ResponseResult finishInterview(@RequestParam("interviewId")Long interviewId) throws ApiException {
public ResponseResult finishInterview(@RequestParam("interviewId")Long interviewId) {
String userId = CurrentUserHolder.getUserId();
lineInterviewService.finishInterview(interviewId, userId);
return ResponseResult.success();
}
@ApiOperation("上传文件")
@GetMapping("/upload/video")
public ResponseResult uploadVideo(@RequestParam("interviewId")Long interviewId, @RequestParam("videoUrlList") List<String> videoUrlList) throws ApiException {
return ResponseResult.success(lineInterviewService.uploadVideo(interviewId, videoUrlList));
@PostMapping("/upload/video")
public ResponseResult uploadVideo(@RequestBody @Validated InterviewUploadVideoRequest request) {
return ResponseResult.success(lineInterviewService.uploadVideo(request.getInterviewId(), request.getVideoUrlList()));
}
@ApiOperation("重新面审")
@GetMapping("/reappointment")
public ResponseResult reappointment(@RequestParam("lineId")Long lineId) throws ApiException {
public ResponseResult reappointment(@RequestParam("lineId")Long lineId) {
return ResponseResult.success(lineInterviewService.reappointment(lineId));
}
}