|
@@ -56,10 +56,10 @@ public class ManageServiceImpl implements ManageService {
|
|
|
CostTypeRepository costTypeRepository;
|
|
|
|
|
|
@Override
|
|
|
- public ApiResult list(ManageVO manageVO, Integer pageNo, Integer pageSize) {
|
|
|
- Pageable pageable = new PageRequest(pageNo - 1, pageSize, SortHelper.sortMap2Sort(new LinkedHashMap<String, BaseOrderEnum>(){{put("happenTime", BaseOrderEnum.DESC);}}));
|
|
|
+ public ApiResult list(ManageVO manageVO) {
|
|
|
+ Pageable pageable = new PageRequest(manageVO.getPageNo() - 1,manageVO.getPageSize(), SortHelper.sortMap2Sort(new LinkedHashMap<String, BaseOrderEnum>(){{put("happenTime", BaseOrderEnum.DESC);}}));
|
|
|
if(manageVO.getIsEntry()){
|
|
|
- pageable = new PageRequest(pageNo - 1, pageSize, SortHelper.sortMap2Sort(new LinkedHashMap<String, BaseOrderEnum>(){{put("gmtModified", BaseOrderEnum.DESC);}}));
|
|
|
+ pageable = new PageRequest(manageVO.getPageNo() - 1, manageVO.getPageSize(), SortHelper.sortMap2Sort(new LinkedHashMap<String, BaseOrderEnum>(){{put("gmtModified", BaseOrderEnum.DESC);}}));
|
|
|
}
|
|
|
Specification specification = new Specification<Manage>() {
|
|
|
@Override
|