修改浏览量
This commit is contained in:
@@ -340,7 +340,8 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
if(Objects.isNull(job)){
|
if(Objects.isNull(job)){
|
||||||
throw new ServiceException("岗位不存在");
|
throw new ServiceException("岗位不存在");
|
||||||
}
|
}
|
||||||
job.setView(job.getView()+1);
|
Long view=job.getView()==null?0L:job.getView();
|
||||||
|
job.setView(view+1);
|
||||||
jobMapper.updateById(job);
|
jobMapper.updateById(job);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -1210,6 +1211,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
job.setIsPublish(1);
|
job.setIsPublish(1);
|
||||||
job.setDataSource("1");
|
job.setDataSource("1");
|
||||||
job.setPostingDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS));
|
job.setPostingDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS));
|
||||||
|
job.setView(0L);
|
||||||
|
|
||||||
String companyName = it.getCompanyName();
|
String companyName = it.getCompanyName();
|
||||||
job.setCompanyName(companyName);
|
job.setCompanyName(companyName);
|
||||||
@@ -1229,7 +1231,9 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
"%s_%s_%s",
|
"%s_%s_%s",
|
||||||
Optional.ofNullable(job.getCompanyId()).orElse(null),
|
Optional.ofNullable(job.getCompanyId()).orElse(null),
|
||||||
job.getJobTitle().trim(),
|
job.getJobTitle().trim(),
|
||||||
job.getJobLocation().trim()
|
job.getJobLocation().trim(),
|
||||||
|
job.getMinSalary(),
|
||||||
|
job.getMaxSalary()
|
||||||
);
|
);
|
||||||
dedupMap.putIfAbsent(dedupKey, job);
|
dedupMap.putIfAbsent(dedupKey, job);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user