|
|
@@ -9,7 +9,6 @@ import javax.annotation.Resource;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
-import lombok.var;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.CommandLineRunner;
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
@@ -10151,7 +10150,7 @@ sqls.add("INSERT IGNORE INTO health_norm_reference (dimension, gender, age_min,
|
|
|
// ===== 迁移:初始化方案规则数据 (P1) =====
|
|
|
try {
|
|
|
// 使用 jdbcTemplate 的 DataSource
|
|
|
- var ds = jdbcTemplate.getDataSource();
|
|
|
+ javax.sql.DataSource ds = jdbcTemplate.getDataSource();
|
|
|
if (ds instanceof javax.sql.DataSource) {
|
|
|
try (Connection conn = ((javax.sql.DataSource) ds).getConnection()) {
|
|
|
PreparedStatement ps = null;
|
|
|
@@ -10191,7 +10190,7 @@ sqls.add("INSERT IGNORE INTO health_norm_reference (dimension, gender, age_min,
|
|
|
// ===== 迁移:初始化报告类型注册 (R1) =====
|
|
|
try {
|
|
|
// 使用 jdbcTemplate 的 DataSource
|
|
|
- var ds = jdbcTemplate.getDataSource();
|
|
|
+ javax.sql.DataSource ds = jdbcTemplate.getDataSource();
|
|
|
if (ds instanceof javax.sql.DataSource) {
|
|
|
try (Connection conn = ((javax.sql.DataSource) ds).getConnection()) {
|
|
|
PreparedStatement ps = null;
|