Compare commits

...

3 Commits

Author SHA1 Message Date
wangliwen 2e8967a4f6 Merge branch 'master' into docker_package 2022-12-27 11:11:43 +08:00
wangliwen 5166ed440f Merge branch 'dev' 2022-12-27 11:11:36 +08:00
wangliwen 77a3bd0f58 判断逻辑。。 2022-12-27 11:11:27 +08:00
1 changed files with 10 additions and 5 deletions

View File

@ -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()