修改竞争力分析-添加area判断为空的情况
This commit is contained in:
@@ -262,8 +262,10 @@ public class JobCollectionServiceImpl extends ServiceImpl<JobCollectionMapper,Jo
|
||||
}
|
||||
|
||||
// 4. 地点匹配
|
||||
if (user.getArea() != null && user.getArea().contains(jobLocation) || jobLocation.contains(user.getArea())) {
|
||||
matchScore += 1;
|
||||
if (user.getArea() != null) {
|
||||
if(user.getArea().contains(jobLocation) || jobLocation.contains(user.getArea())){
|
||||
matchScore += 1;
|
||||
}
|
||||
}
|
||||
|
||||
// 5. 年龄估算(从生日计算)
|
||||
|
||||
Reference in New Issue
Block a user