修复job为空时,漏洞问题

This commit is contained in:
sh
2026-05-26 13:07:27 +08:00
parent 2fc4a93cc8
commit 50558fdbc6

View File

@@ -747,8 +747,6 @@ public class ESJobSearchImpl implements IESJobSearchService
Company company=iCompanyService.selectCompanyByCompanyId(job.getCompanyId());
job.setCode(company.getCode());
}
}
BeanUtils.copyBeanProp(esJobDocument, job);
//生成jobId加密字段
String encryptJobId=SM4Utils.encryptEcb(SM4Constants.SM4_KET, String.valueOf(job!=null?job.getJobId():null));
@@ -784,6 +782,7 @@ public class ESJobSearchImpl implements IESJobSearchService
esJobDocumentMapper.delete(lambdaEsQueryWrapper);
esJobDocumentMapper.insert(esJobDocument);
}
}
public List<ESJobDocument> selectByIds(Long[] jobIds) {
LambdaEsQueryWrapper<ESJobDocument> wrapper = new LambdaEsQueryWrapper<>();