面试日程
This commit is contained in:
@@ -28,7 +28,7 @@ public interface DeskService {
|
||||
* @param selectedData
|
||||
* @return
|
||||
*/
|
||||
InterviewScheduleInfoVO interviewSchedule(String userId,Date selectedData);
|
||||
InterviewScheduleInfoVO interviewSchedule(String userId,String selectedData);
|
||||
|
||||
/**
|
||||
* 招商经理 各阶段 待处理 待跟进数量
|
||||
|
||||
@@ -16,6 +16,7 @@ import com.cool.store.vo.InterviewPlanVO;
|
||||
import com.cool.store.vo.InterviewScheduleInfoVO;
|
||||
import com.cool.store.vo.StageCountVO;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.client.utils.DateUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -53,15 +54,17 @@ public class DeskServiceImpl implements DeskService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public InterviewScheduleInfoVO interviewSchedule(String userId,Date selectedData) {
|
||||
public InterviewScheduleInfoVO interviewSchedule(String userId,String selectedData) {
|
||||
if (StringUtils.isEmpty(userId)||selectedData==null){
|
||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||
}
|
||||
Date date = DateUtils.parseDate(selectedData);
|
||||
InterviewScheduleInfoVO interviewScheduleInfoVO = new InterviewScheduleInfoVO();
|
||||
//查询面试数量
|
||||
String currentDate = DateUtil.format(selectedData, CoolDateUtils.DATE_FORMAT_DAY);
|
||||
String startTime = DateUtil.format(selectedData, CoolDateUtils.DATE_FORMAT_SEC);
|
||||
String endTime = DateUtil.format(CoolDateUtils.getDateBefore(selectedData, 7), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
|
||||
String currentDate = DateUtil.format(date, CoolDateUtils.DATE_FORMAT_DAY);
|
||||
String startTime = DateUtil.format(date, CoolDateUtils.DATE_FORMAT_SEC);
|
||||
String endTime = DateUtil.format(CoolDateUtils.getDateBefore(date, 7), CoolDateUtils.DATE_FORMAT_SEC);
|
||||
SpecialDateRangeInterviewCountDTO interviewCount = hyPartnerInterviewPlanDAO.getInterviewCount(userId, currentDate, startTime, endTime);
|
||||
|
||||
interviewScheduleInfoVO.setCurrentDayInterviewCount(interviewCount.getCurrentDayInterviewCount());
|
||||
|
||||
Reference in New Issue
Block a user