Commit dc3a8b4ad992dafe7d77f92921422405df5a72fd
1 parent
0c7e64915d
Exists in
master
and in
6 other branches
paixu
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/TempFacade.java
View file @
dc3a8b4
| ... | ... | @@ -273,7 +273,7 @@ |
| 273 | 273 | |
| 274 | 274 | public BaseResponse getTemp(String parentId) { |
| 275 | 275 | List<Map<String, Object>> restList = new ArrayList<>(); |
| 276 | - List<TempModel> tempList = mongoTemplate.find(Query.query(Criteria.where("pid").is(parentId)).with(new Sort(Sort.Direction.ASC, "modified")), TempModel.class); | |
| 276 | + List<TempModel> tempList = mongoTemplate.find(Query.query(Criteria.where("pid").is(parentId)).with(new Sort(Sort.Direction.ASC, "created")), TempModel.class); | |
| 277 | 277 | if (CollectionUtils.isNotEmpty(tempList)) { |
| 278 | 278 | for (TempModel temp : tempList) { |
| 279 | 279 | if (temp != null && MapUtils.isNotEmpty(temp.getTempList())) { |
| ... | ... | @@ -289,7 +289,7 @@ |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | // com.lyms.platform.operate.web.utils.CollectionUtils.reverseList(restList); |
| 292 | - com.lyms.platform.operate.web.utils.CollectionUtils.sortListByMapKeyWithDate(restList, "date"); | |
| 292 | +// com.lyms.platform.operate.web.utils.CollectionUtils.sortListByMapKeyWithDate(restList, "date"); | |
| 293 | 293 | return RespBuilder.buildSuccess(restList); |
| 294 | 294 | } |
| 295 | 295 | } |