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 7d88cabe
authored
May 19, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_OrderServiceList_wangl' into 'develop'
完善接口返回字段 See merge request !12
2 parents
a981e391
a55b9a5d
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 @
7d88cab
...
...
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -82,6 +83,12 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
record
.
setOrgBranchName
(
o
.
getOrgBranchName
());
record
.
setEngineerNum
(
this
.
getEngNum
(
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
);
}
...
...
@@ -170,4 +177,9 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
public
Timestamp
getTimestampFromDate
(
String
date
){
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