...
This commit is contained in:
parent
a04571795d
commit
898e499720
|
@ -2910,23 +2910,31 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
*/
|
||||
@Override
|
||||
public Object selectCensusApplyTableNotPaging(Map params) {
|
||||
List<Map> resultList;
|
||||
List<Map> resultList = new ArrayList<>();
|
||||
if (params.containsKey("type") && (null == params.get("type") || org.apache.commons.lang3.StringUtils.isBlank(params.get("type").toString()))) { //查所有
|
||||
resultList = resourceDao.selectCensusApplyTable(params);
|
||||
List<Map> lcApplyDtoList = lcSelectCensusApplyTable(params);
|
||||
resultList.addAll(lcApplyDtoList);
|
||||
try {
|
||||
List<Map> lcApplyDtoList = lcSelectCensusApplyTable(params);
|
||||
resultList.addAll(lcApplyDtoList);
|
||||
} catch (Exception exception) {
|
||||
logger.error("查询浪潮云资源失败", exception);
|
||||
}
|
||||
resultList = resultList.stream()
|
||||
.sorted(Comparator.comparing(x -> {
|
||||
Map map = (Map) x;
|
||||
return DateUtils.parse(map.get("createDate").toString(), DateUtils.DATE_TIME_PATTERN);
|
||||
}).reversed()).collect(Collectors.toList());
|
||||
} else if ("云资源".equals(params.get("type").toString()) || "云视频".equals(params.get("type").toString())) { // 浪潮云资源
|
||||
resultList = lcSelectCensusApplyTable(params);
|
||||
resultList = resultList.stream()
|
||||
.sorted(Comparator.comparing(x -> {
|
||||
Map map = (Map) x;
|
||||
return DateUtils.parse(map.get("createDate").toString(), DateUtils.DATE_TIME_PATTERN);
|
||||
}).reversed()).collect(Collectors.toList());
|
||||
try {
|
||||
resultList = lcSelectCensusApplyTable(params);
|
||||
resultList = resultList.stream()
|
||||
.sorted(Comparator.comparing(x -> {
|
||||
Map map = (Map) x;
|
||||
return DateUtils.parse(map.get("createDate").toString(), DateUtils.DATE_TIME_PATTERN);
|
||||
}).reversed()).collect(Collectors.toList());
|
||||
} catch (Exception exception) {
|
||||
logger.error("查询浪潮云资源失败", exception);
|
||||
}
|
||||
} else { // ucs 特殊
|
||||
resultList = resourceDao.selectCensusApplyTable(params);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue