REQ-3540: 添加校验
This commit is contained in:
parent
a241479abf
commit
af4d4ecaf6
@ -112,6 +112,8 @@ public class TemplateDatabaseQueryService {
|
||||
.map(IndexNodeCodeProvider::indexNodeCode) //
|
||||
.filter(StringUtils::isNotBlank) //
|
||||
.collect(toList());
|
||||
if (CollectionUtils.isEmpty(codes))
|
||||
return Collections.emptyList();
|
||||
return templateDatabaseDao.lambdaQuery() //
|
||||
.in(TemplateDatabase::getCode, codes) //
|
||||
.list();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user