修改浏览量

This commit is contained in:
sh
2026-01-30 13:31:57 +08:00
parent 256f5abc2f
commit 515cc8c001

View File

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