Commit d20241f8 by 崔彦峰

fix(recruitment): 修复招聘需求服务中的查询条件创建问题

- 修正了省份HRBP关系查询中错误使用实例对象的问题
- 将hrbpRelation.createCriteria()更正为relation.createCriteria()
- 确保了业务类型和省份代码的正确查询条件构建
1 parent 68855379
...@@ -328,7 +328,7 @@ public class RecruitmentDemandService { ...@@ -328,7 +328,7 @@ public class RecruitmentDemandService {
else { else {
if (StringUtils.isNotBlank(provinceCode)) { if (StringUtils.isNotBlank(provinceCode)) {
Example relation = new Example(RecruitmentProvinceHrbpRelation.class); Example relation = new Example(RecruitmentProvinceHrbpRelation.class);
hrbpRelation.createCriteria().andEqualTo("businessType", businessType).andEqualTo("provinceCode", provinceCode); relation.createCriteria().andEqualTo("businessType", businessType).andEqualTo("provinceCode", provinceCode);
List<RecruitmentProvinceHrbpRelation> relations = provinceHrbpRelationMapper.selectByExample(relation); List<RecruitmentProvinceHrbpRelation> relations = provinceHrbpRelationMapper.selectByExample(relation);
if (CollectionUtils.isNotEmpty(relations)) { if (CollectionUtils.isNotEmpty(relations)) {
dto.setRecruiterName(relations.get(0).getHrbpName()); dto.setRecruiterName(relations.get(0).getHrbpName());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!