Commit e5c9fdae by 刘鑫

fix(ID1004112): 队内、周边、搜索标签优化,以及距离下拉框选项优化

1 parent b16e65d0
...@@ -25,4 +25,9 @@ public class RecommendEngineersReq { ...@@ -25,4 +25,9 @@ public class RecommendEngineersReq {
* 待补充doc * 待补充doc
*/ */
private String userId; private String userId;
/**
* 是否属于搜索查询, 用于满足PRD标签判定
*/
private boolean search;
} }
...@@ -18,5 +18,9 @@ public enum TestimonialsEngineerTag { ...@@ -18,5 +18,9 @@ public enum TestimonialsEngineerTag {
/** /**
* 搜索, 通过搜索出来的人 * 搜索, 通过搜索出来的人
*/ */
SEARCH; SEARCH,
/**
* 不显示标签
*/
NONE;
} }
...@@ -191,8 +191,10 @@ public class OrderAssignImpl implements OrderAssign { ...@@ -191,8 +191,10 @@ public class OrderAssignImpl implements OrderAssign {
engineerTag = TestimonialsEngineerTag.TEAM; engineerTag = TestimonialsEngineerTag.TEAM;
} else if (tempEngineer.getDistance().compareTo(judgeDistance) <= 0) { } else if (tempEngineer.getDistance().compareTo(judgeDistance) <= 0) {
engineerTag = TestimonialsEngineerTag.PERIPHERAL; engineerTag = TestimonialsEngineerTag.PERIPHERAL;
} else { } else if (req.isSearch()){
engineerTag = TestimonialsEngineerTag.SEARCH; engineerTag = TestimonialsEngineerTag.SEARCH;
} else {
engineerTag = TestimonialsEngineerTag.NONE;
} }
item.setEngineerCode(engineerCode); item.setEngineerCode(engineerCode);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!