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 4c60c12f
authored
Jun 12, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口字段变更
1 parent
55d26429
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EngineerServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EngineerServiceImpl.java
View file @
4c60c12
...
@@ -15,7 +15,9 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -15,7 +15,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -88,6 +90,7 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -88,6 +90,7 @@ public class EngineerServiceImpl implements EngineerService {
skill
.
setEngineerCode
(
e
.
getEngineerCode
());
skill
.
setEngineerCode
(
e
.
getEngineerCode
());
skill
.
setEngineerName
(
e
.
getName
());
skill
.
setEngineerName
(
e
.
getName
());
skill
.
setGroupName
(
groupNames
.
getOrDefault
(
e
.
getGroupId
(),
""
));
skill
.
setGroupName
(
groupNames
.
getOrDefault
(
e
.
getGroupId
(),
""
));
skill
.
setUpdateTime
(
this
.
Timestamp2Datetime
(
e
.
getUpdateTime
(),
"yyyy-MM-dd hh:mm:ss"
));
// 获取一个工程师的技能列表
// 获取一个工程师的技能列表
skill
.
setCategoryIds
(
engineerSkills
.
getOrDefault
(
e
.
getEngineerCode
(),
emptySkills
));
skill
.
setCategoryIds
(
engineerSkills
.
getOrDefault
(
e
.
getEngineerCode
(),
emptySkills
));
...
@@ -166,7 +169,7 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -166,7 +169,7 @@ public class EngineerServiceImpl implements EngineerService {
item
.
setEngineerCode
(
e
.
getEngineerCode
());
item
.
setEngineerCode
(
e
.
getEngineerCode
());
item
.
setEngineerName
(
e
.
getName
());
item
.
setEngineerName
(
e
.
getName
());
item
.
set
WorkType
((
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
);
item
.
set
Kind
((
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
);
b
=
buss
.
getOrDefault
(
e
.
getEngineerCode
(),
null
);
b
=
buss
.
getOrDefault
(
e
.
getEngineerCode
(),
null
);
if
(
b
==
null
)
{
if
(
b
==
null
)
{
...
@@ -318,13 +321,13 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -318,13 +321,13 @@ public class EngineerServiceImpl implements EngineerService {
item
.
setAddress
(
e
.
getAddress
());
item
.
setAddress
(
e
.
getAddress
());
groupName
=
groups
.
getOrDefault
(
e
.
getGroupId
(),
""
);
groupName
=
groups
.
getOrDefault
(
e
.
getGroupId
(),
""
);
item
.
setGroup
(
groupName
);
item
.
setGroup
Name
(
groupName
);
age
=
this
.
getEngineerAge
(
e
.
getBirth
());
age
=
this
.
getEngineerAge
(
e
.
getBirth
());
item
.
setAge
(
age
);
item
.
setAge
(
age
);
workType
=
(
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
;
workType
=
(
e
.
getKind
()
==
1
)
?
"fullJob"
:
"partJob"
;
item
.
set
WorkType
(
workType
);
item
.
set
Kind
(
workType
);
items
.
add
(
item
);
items
.
add
(
item
);
}
}
...
@@ -360,4 +363,9 @@ public class EngineerServiceImpl implements EngineerService {
...
@@ -360,4 +363,9 @@ public class EngineerServiceImpl implements EngineerService {
}
}
return
(
age
<=
0
)
?
""
:
Integer
.
toString
(
age
);
return
(
age
<=
0
)
?
""
:
Integer
.
toString
(
age
);
}
}
private
String
Timestamp2Datetime
(
Timestamp
t
,
String
pattern
)
{
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
pattern
);
return
df
.
format
(
t
.
toLocalDateTime
());
}
}
}
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