新增患者:监护人信息限制

This commit is contained in:
2025-12-31 13:43:24 +08:00
parent aeb6b95970
commit 61f4020487
3 changed files with 80 additions and 6 deletions

View File

@@ -69,8 +69,25 @@ public class SysConfigServiceImpl implements ISysConfigService {
config.setConfigKey(configKey);
SysConfig retConfig = configMapper.selectConfig(config);
if (StringUtils.isNotNull(retConfig)) {
redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue());
return retConfig.getConfigValue();
String dbValue = retConfig.getConfigValue();
System.out.println("=== selectConfigByKey 调试信息 ===");
System.out.println("configKey: " + configKey);
System.out.println("retConfig: " + retConfig);
System.out.println("configId: " + retConfig.getConfigId());
System.out.println("configName: " + retConfig.getConfigName());
System.out.println("configValue from DB: [" + dbValue + "]");
System.out.println("configValue is null: " + (dbValue == null));
System.out.println("configValue is empty: " + StringUtils.isEmpty(dbValue));
System.out.println("================================");
if (StringUtils.isNotEmpty(dbValue)) {
redisCache.setCacheObject(getCacheKey(configKey), dbValue);
return dbValue;
} else {
System.out.println("警告: configValue 为空,返回空字符串");
return StringUtils.EMPTY;
}
} else {
System.out.println("警告: 数据库中未找到 configKey=" + configKey + " 的记录");
}
return StringUtils.EMPTY;
}