REQ-3540: 添加校验

This commit is contained in:
yanglin 2025-03-20 09:33:30 +08:00
parent a241479abf
commit af4d4ecaf6

View File

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