修复job为空时,漏洞问题
This commit is contained in:
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user