Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mengmeng
pension
Commits
c32a8d16
Commit
c32a8d16
authored
May 08, 2021
by
Shen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 调整部分接口信息返回内容的顺序
parent
d4799cea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
PensionOrderServiceImpl.java
...es/serviceOrder/service/impl/PensionOrderServiceImpl.java
+7
-3
No files found.
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrderServiceImpl.java
View file @
c32a8d16
...
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* 订单表
* 订单表
...
@@ -131,7 +132,9 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -131,7 +132,9 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
list
.
addAll
(
list2
);
list
.
addAll
(
list2
);
}
}
// page.setTotal(list.size());
// page.setTotal(list.size());
return
getPageData
(
getSubList
(
params
,
list
),
list
.
size
(),
PensionOrderDTO
.
class
);
List
<
PensionOrderDTO
>
sortList
=
list
.
stream
().
sorted
(
Comparator
.
comparing
(
PensionOrderDTO:
:
getAppointmentTime
)).
collect
(
Collectors
.
toList
());
Collections
.
reverse
(
sortList
);
return
getPageData
(
getSubList
(
params
,
sortList
),
sortList
.
size
(),
PensionOrderDTO
.
class
);
}
}
@Override
@Override
...
@@ -163,8 +166,9 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -163,8 +166,9 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
result
.
addAll
(
list
);
result
.
addAll
(
list
);
}
}
// page.setTotal(result.size());
// page.setTotal(result.size());
List
<
PensionOrderDTO
>
sortList
=
result
.
stream
().
sorted
(
Comparator
.
comparing
(
PensionOrderDTO:
:
getAppointmentTime
)).
collect
(
Collectors
.
toList
());
return
getPageData
(
getSubList
(
params
,
result
),
result
.
size
(),
PensionOrderDTO
.
class
);
Collections
.
reverse
(
sortList
);
return
getPageData
(
getSubList
(
params
,
sortList
),
sortList
.
size
(),
PensionOrderDTO
.
class
);
}
}
@Override
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment