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 a55b9a5d
authored
May 19, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善接口返回字段
1 parent
7a3e5ae0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceListServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceListServiceImpl.java
View file @
a55b9a5
...
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
...
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -82,6 +83,12 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
...
@@ -82,6 +83,12 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
record
.
setOrgBranchName
(
o
.
getOrgBranchName
());
record
.
setOrgBranchName
(
o
.
getOrgBranchName
());
record
.
setEngineerNum
(
this
.
getEngNum
(
names
));
//工程师数量
record
.
setEngineerNum
(
this
.
getEngNum
(
names
));
//工程师数量
record
.
setEngineerNames
(
this
.
getEngNames
(
names
));
//工程师姓名列表
record
.
setEngineerNames
(
this
.
getEngNames
(
names
));
//工程师姓名列表
record
.
setExpectTimeBegin
(
this
.
Timestamp2Datetime
(
o
.
getExpectTimeBegin
()));
record
.
setExpectTimeEnd
(
this
.
Timestamp2Datetime
(
o
.
getExpectTimeEnd
()));
record
.
setAppointmentTime
(
null
);
record
.
setAppointmentStatus
(
o
.
getAppointmentStatus
());
record
.
setAppointmentType
(
o
.
getAppointmentMethod
());
record
.
setCreateTime
(
this
.
Timestamp2Datetime
(
o
.
getCreateTime
()));
content
.
add
(
record
);
content
.
add
(
record
);
}
}
...
@@ -170,4 +177,9 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
...
@@ -170,4 +177,9 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
public
Timestamp
getTimestampFromDate
(
String
date
){
public
Timestamp
getTimestampFromDate
(
String
date
){
return
Timestamp
.
valueOf
(
date
+
" 00:00:00"
);
return
Timestamp
.
valueOf
(
date
+
" 00:00:00"
);
}
}
private
String
Timestamp2Datetime
(
Timestamp
t
)
{
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
"yyyy-mm-dd HH:MM:SS"
);
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