|
@@ -44,8 +44,8 @@ import java.util.stream.Collectors;
|
|
|
import static com.citu.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
|
import static com.citu.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY3;
|
|
|
import static com.citu.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
|
|
|
-import static com.citu.module.menduner.common.util.TimeUtils.generateDateTimeRange;
|
|
|
import static com.citu.module.menduner.common.CommonConstants.*;
|
|
|
+import static com.citu.module.menduner.common.util.TimeUtils.generateDateTimeRange;
|
|
|
import static com.citu.module.menduner.system.enums.ErrorCodeConstants.*;
|
|
|
import static com.citu.module.menduner.system.util.RecruitAnalysisUtils.packBarCount;
|
|
|
|
|
@@ -136,7 +136,7 @@ public class JobCvRelServiceImpl implements JobCvRelService {
|
|
|
}
|
|
|
Long userId = LoginUserContext.getUserId();
|
|
|
// 效验某段时间是否投递过
|
|
|
- if (jobCvRelMapper.checkDataWithin7Day(userId, reqVO.getJobId())) {
|
|
|
+ if (jobCvRelMapper.checkDataWithin7Day(userId, reqVO.getJobFairId(), reqVO.getJobId())) {
|
|
|
throw exception(JOB_CV_REL_EXISTS);
|
|
|
}
|
|
|
// 赋值
|
|
@@ -169,7 +169,7 @@ public class JobCvRelServiceImpl implements JobCvRelService {
|
|
|
if (null != userId) {
|
|
|
// 登录效验
|
|
|
// 效验某段时间是否投递过
|
|
|
- if (jobCvRelMapper.checkDataWithin7Day(userId, reqVO.getJobId())) {
|
|
|
+ if (jobCvRelMapper.checkDataWithin7Day(userId, reqVO.getJobFairId(), reqVO.getJobId())) {
|
|
|
throw exception(JOB_CV_REL_EXISTS);
|
|
|
}
|
|
|
}
|
|
@@ -203,7 +203,18 @@ public class JobCvRelServiceImpl implements JobCvRelService {
|
|
|
return false;
|
|
|
}
|
|
|
// 效验某段时间是否投递过
|
|
|
- return jobCvRelMapper.checkDataWithin7Day(userId, jobId);
|
|
|
+ return jobCvRelMapper.checkDataWithin7Day(userId, null, jobId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean checkSend(Long jobFairId, Long jobId) {
|
|
|
+ Long userId = getLoginUserId();
|
|
|
+ if (null == userId) {
|
|
|
+ // 没登录
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ // 效验某段时间是否投递过
|
|
|
+ return jobCvRelMapper.checkDataWithin7Day(userId, jobFairId, jobId);
|
|
|
}
|
|
|
|
|
|
@Override
|