Compare commits
2 Commits
2a230b9c40
...
5166ed440f
Author | SHA1 | Date |
---|---|---|
wangliwen | 5166ed440f | |
wangliwen | 77a3bd0f58 |
|
@ -2871,8 +2871,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
|
||||
List result = new ArrayList();
|
||||
|
||||
if (params.containsKey("type") && (null == params.get("type") || org.apache.commons.lang3.StringUtils.isBlank(params.get("type").toString()))) { //查所有
|
||||
|
||||
if (!params.containsKey("type") ||
|
||||
(params.containsKey("type") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("type") != null ? params.get("type").toString() : null))
|
||||
) { //查所有
|
||||
int total = 0;
|
||||
List<Map> ucsApplyDtoList = resourceDao.selectCensusApplyTable(params);
|
||||
result.addAll(ucsApplyDtoList);
|
||||
|
@ -2890,7 +2891,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
}).reversed())
|
||||
.skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList());
|
||||
return new PageData(newResult, total);
|
||||
} else if ("云资源".equals(params.get("type").toString()) || "云视频".equals(params.get("type").toString())) {
|
||||
} else if (params.containsKey("type") &&
|
||||
("云资源".equals(params.get("type") != null ? params.get("type").toString() : null) || "云视频".equals(params.get("type") != null ? params.get("type").toString() : null))) {
|
||||
List<Map> lcApplyDtoList = lcSelectCensusApplyTable(params);
|
||||
result.addAll(lcApplyDtoList.stream().skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList()));
|
||||
return new PageData(result, lcApplyDtoList.size());
|
||||
|
@ -2911,7 +2913,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
@Override
|
||||
public Object selectCensusApplyTableNotPaging(Map params) {
|
||||
List<Map> resultList = new ArrayList<>();
|
||||
if (params.containsKey("type") && (null == params.get("type") || org.apache.commons.lang3.StringUtils.isBlank(params.get("type").toString()))) { //查所有
|
||||
if (!params.containsKey("type") ||
|
||||
(params.containsKey("type") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("type") != null ? params.get("type").toString() : null))
|
||||
) { // 查所有
|
||||
resultList = resourceDao.selectCensusApplyTable(params);
|
||||
try {
|
||||
List<Map> lcApplyDtoList = lcSelectCensusApplyTable(params);
|
||||
|
@ -2924,7 +2928,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
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())) { // 浪潮云资源
|
||||
} else if (params.containsKey("type") &&
|
||||
("云资源".equals(params.get("type") != null ? params.get("type").toString() : null) || "云视频".equals(params.get("type") != null ? params.get("type").toString() : null))) { // 浪潮云资源
|
||||
try {
|
||||
resultList = lcSelectCensusApplyTable(params);
|
||||
resultList = resultList.stream()
|
||||
|
|
Loading…
Reference in New Issue