|
@@ -186,7 +186,7 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
public List<CommonRespVO> getJobPositionCountByEnterpriseId(Long enterpriseId) {
|
|
public List<CommonRespVO> getJobPositionCountByEnterpriseId(Long enterpriseId) {
|
|
List<CommonRespVO> list = new ArrayList<>();
|
|
List<CommonRespVO> list = new ArrayList<>();
|
|
List<JobAdvertisedDO> jobList = jobAdvertisedMapper
|
|
List<JobAdvertisedDO> jobList = jobAdvertisedMapper
|
|
- .selectList(JobAdvertisedDO::getEnterpriseId, enterpriseId);
|
|
|
|
|
|
+ .selectByEnterpriseIdAndNotExpireTime(enterpriseId);
|
|
// 分组
|
|
// 分组
|
|
Map<Long, Long> groupedMap = jobList.stream()
|
|
Map<Long, Long> groupedMap = jobList.stream()
|
|
.collect(
|
|
.collect(
|
|
@@ -206,7 +206,7 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
public List<CommonRespVO> getJobAreaCountByEnterpriseId(Long enterpriseId) {
|
|
public List<CommonRespVO> getJobAreaCountByEnterpriseId(Long enterpriseId) {
|
|
List<CommonRespVO> list = new ArrayList<>();
|
|
List<CommonRespVO> list = new ArrayList<>();
|
|
List<JobAdvertisedDO> jobList = jobAdvertisedMapper
|
|
List<JobAdvertisedDO> jobList = jobAdvertisedMapper
|
|
- .selectList(JobAdvertisedDO::getEnterpriseId, enterpriseId);
|
|
|
|
|
|
+ .selectByEnterpriseIdAndNotExpireTime(enterpriseId);
|
|
// 分组
|
|
// 分组
|
|
Map<Long, Long> groupedMap = jobList.stream()
|
|
Map<Long, Long> groupedMap = jobList.stream()
|
|
.collect(
|
|
.collect(
|
|
@@ -245,8 +245,8 @@ public class JobAdvertisedServiceImpl implements JobAdvertisedService {
|
|
|
|
|
|
if (!Objects.equals(loginUser.getId(), entity.getUserId())
|
|
if (!Objects.equals(loginUser.getId(), entity.getUserId())
|
|
|| !Objects.equals(enterpriseId, entity.getEnterpriseId())) {
|
|
|| !Objects.equals(enterpriseId, entity.getEnterpriseId())) {
|
|
- // 不是自己的数据
|
|
|
|
- throw exception(FORBIDDEN);
|
|
|
|
|
|
+ // TODO 不是自己的数据 (企业管理员更改企业其他用户发布的职位信息)
|
|
|
|
+ // throw exception(FORBIDDEN);
|
|
}
|
|
}
|
|
job.setId(entity.getId());
|
|
job.setId(entity.getId());
|
|
jobOperate(job);
|
|
jobOperate(job);
|