add - 新增脚本日志记录
This commit is contained in:
parent
15b6fba7a8
commit
1952d614e3
@ -12,6 +12,7 @@ import org.springframework.core.io.ResourceLoader;
|
||||
import org.springframework.core.io.support.ResourcePatternResolver;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
@ -69,7 +70,8 @@ public class ExtDatabaseInitializer implements ApplicationRunner {
|
||||
|
||||
private List<String> selectExtTables() {
|
||||
String query = "SHOW TABLES LIKE 'EXT_AX_%'";
|
||||
return jdbcTemplate.queryForList(query, String.class);
|
||||
return jdbcTemplate.queryForList(query, String.class).stream().filter(StringUtils::hasLength)
|
||||
.map(String::toUpperCase).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private void executeSqlScript(String fileName) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user