|
|
@@ -6,8 +6,6 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.modules.recruit.vo.CalendarInterviewVo;
|
|
|
import com.zhongzheng.modules.recruit.vo.DayInterviewVo;
|
|
|
-import com.zhongzheng.modules.user.vo.CalendarStudyVo;
|
|
|
-import com.zhongzheng.modules.user.vo.DayStudyVo;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -30,7 +28,7 @@ import java.util.stream.Collectors;
|
|
|
* 招聘面试关联Service业务层处理
|
|
|
*
|
|
|
* @author ruoyi
|
|
|
- * @date 2021-08-18
|
|
|
+ * @date 2021-08-20
|
|
|
*/
|
|
|
@Service
|
|
|
public class RecruitInterviewServiceImpl extends ServiceImpl<RecruitInterviewMapper, RecruitInterview> implements IRecruitInterviewService {
|
|
|
@@ -50,8 +48,10 @@ public class RecruitInterviewServiceImpl extends ServiceImpl<RecruitInterviewMap
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getTimingStart()), RecruitInterview::getTimingStart, bo.getTimingStart());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getTimingEnd()), RecruitInterview::getTimingEnd, bo.getTimingEnd());
|
|
|
lqw.eq(bo.getNeedsId() != null, RecruitInterview::getNeedsId, bo.getNeedsId());
|
|
|
- lqw.eq(bo.getResumeId() != null, RecruitInterview::getResumeId, bo.getResumeId());
|
|
|
+ lqw.eq(StrUtil.isNotBlank(bo.getResumeJson()), RecruitInterview::getResumeJson, bo.getResumeJson());
|
|
|
lqw.eq(bo.getStatus() != null, RecruitInterview::getStatus, bo.getStatus());
|
|
|
+ lqw.eq(bo.getTenantId() != null, RecruitInterview::getTenantId, bo.getTenantId());
|
|
|
+ lqw.eq(bo.getUserId() != null, RecruitInterview::getUserId, bo.getUserId());
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|
|
|
@@ -114,11 +114,18 @@ public class RecruitInterviewServiceImpl extends ServiceImpl<RecruitInterviewMap
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
CalendarInterviewVo calendarInterviewVo = new CalendarInterviewVo();
|
|
|
//得到日历日期
|
|
|
- Long firstDayOfMonth = getFirstDayOfMonth(cal.get(Calendar.MONTH)+1);
|
|
|
- Long lastDayOfMonth = getLastDayOfMonth(cal.get(Calendar.MONTH)+1);
|
|
|
+ if (bo.getMoth() == null){
|
|
|
+ bo.setMoth(cal.get(Calendar.MONTH)+1);
|
|
|
+ }
|
|
|
+ Long firstDayOfMonth = getFirstDayOfMonth(bo.getMoth());
|
|
|
+ Long lastDayOfMonth = getLastDayOfMonth(bo.getMoth());
|
|
|
List<DayInterviewVo> dayStudyVosOne = getDays(firstDayOfMonth,lastDayOfMonth);
|
|
|
+ for (DayInterviewVo dayInterviewVo : dayStudyVosOne) {
|
|
|
+ List<RecruitInterviewVo> recruitInterviewVos=baseMapper.selectByDay(dayInterviewVo.getDate(),bo.getMoth(),bo.getYear());
|
|
|
+ dayInterviewVo.setRecruitInterviewList(recruitInterviewVos);
|
|
|
+ }
|
|
|
calendarInterviewVo.setYear(Convert.toLong(cal.get(Calendar.YEAR)));
|
|
|
- calendarInterviewVo.setMonth(Convert.toLong(cal.get(Calendar.MONTH)+1));
|
|
|
+ calendarInterviewVo.setMonth(Convert.toLong(bo.getMoth()));
|
|
|
calendarInterviewVo.setDayInterviewVos(dayStudyVosOne);
|
|
|
return calendarInterviewVo;
|
|
|
}
|