Commit 6047e378 by Ren Ping

Merge remote-tracking branch 'origin/develop' into develop

2 parents 3f126ebb e5c9fdae
......@@ -25,4 +25,9 @@ public class RecommendEngineersReq {
* 待补充doc
*/
private String userId;
/**
* 是否属于搜索查询, 用于满足PRD标签判定
*/
private boolean search;
}
......@@ -18,5 +18,9 @@ public enum TestimonialsEngineerTag {
/**
* 搜索, 通过搜索出来的人
*/
SEARCH;
SEARCH,
/**
* 不显示标签
*/
NONE;
}
......@@ -390,7 +390,8 @@ public class EngineerServiceImpl implements EngineerService {
items.add(item);
}
return items;
return items.stream().sorted(Comparator.comparing(EngineerInfoListResp.EngineerInfo::getGroupName, Comparator.reverseOrder())
.thenComparing(EngineerInfoListResp.EngineerInfo::getName, Comparator.reverseOrder())).collect(Collectors.toList());
}
private List<EngineerSkillListResp.EngineerSkill> packEngineerSkills(List<EngineerInfoEntity> engineers) {
......
......@@ -191,8 +191,10 @@ public class OrderAssignImpl implements OrderAssign {
engineerTag = TestimonialsEngineerTag.TEAM;
} else if (tempEngineer.getDistance().compareTo(judgeDistance) <= 0) {
engineerTag = TestimonialsEngineerTag.PERIPHERAL;
} else {
} else if (req.isSearch()){
engineerTag = TestimonialsEngineerTag.SEARCH;
} else {
engineerTag = TestimonialsEngineerTag.NONE;
}
item.setEngineerCode(engineerCode);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!