Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6047e378
authored
Nov 16, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
3f126ebb
e5c9fdae
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/param/RecommendEngineersReq.java
project-order/src/main/java/com/dituhui/pea/order/enums/TestimonialsEngineerTag.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
project-order/src/main/java/com/dituhui/pea/order/dto/param/RecommendEngineersReq.java
View file @
6047e37
...
@@ -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
;
}
}
project-order/src/main/java/com/dituhui/pea/order/enums/TestimonialsEngineerTag.java
View file @
6047e37
...
@@ -18,5 +18,9 @@ public enum TestimonialsEngineerTag {
...
@@ -18,5 +18,9 @@ public enum TestimonialsEngineerTag {
/**
/**
* 搜索, 通过搜索出来的人
* 搜索, 通过搜索出来的人
*/
*/
SEARCH
;
SEARCH
,
/**
* 不显示标签
*/
NONE
;
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
View file @
6047e37
...
@@ -390,7 +390,8 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -390,7 +390,8 @@ public class EngineerServiceImpl implements EngineerService {
items
.
add
(
item
);
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
)
{
private
List
<
EngineerSkillListResp
.
EngineerSkill
>
packEngineerSkills
(
List
<
EngineerInfoEntity
>
engineers
)
{
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
View file @
6047e37
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment