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 6fdfc841
authored
Jul 13, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年龄如果获取不到,填写0
1 parent
7f8a7f8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderCreateServiceImpl.java
View file @
6fdfc84
...
@@ -186,8 +186,12 @@ public class OrderCreateServiceImpl implements OrderCreateService {
...
@@ -186,8 +186,12 @@ public class OrderCreateServiceImpl implements OrderCreateService {
oa
.
setEngineerCode
(
assignEngineerCode
);
oa
.
setEngineerCode
(
assignEngineerCode
);
EngineerInfoEntity
engineerInfo
=
engineerInfoDao
.
getByEngineerCode
(
assignEngineerCode
);
EngineerInfoEntity
engineerInfo
=
engineerInfoDao
.
getByEngineerCode
(
assignEngineerCode
);
oa
.
setEngineerName
(
engineerInfo
.
getName
());
oa
.
setEngineerName
(
engineerInfo
.
getName
());
int
age
=
(
int
)
DateUtils
.
getAge
(
engineerInfo
.
getBirth
());
if
(
StringUtils
.
isNotBlank
(
engineerInfo
.
getBirth
()))
{
int
age
=
(
int
)
DateUtils
.
getAge
(
engineerInfo
.
getBirth
());
oa
.
setEngineerAge
(
age
);
oa
.
setEngineerAge
(
age
);
}
else
{
oa
.
setEngineerAge
(
0
);
}
oa
.
setEngineerPhone
(
engineerInfo
.
getPhone
());
oa
.
setEngineerPhone
(
engineerInfo
.
getPhone
());
oa
.
setPreStatus
(
"VIRTUAL"
);
oa
.
setPreStatus
(
"VIRTUAL"
);
...
...
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