feat: 保留系统配置的isSystem值
主要修改: 1. 在SystemConfigService中更新配置时,保留原有的isSystem值,以确保配置的一致性和完整性。 技术细节: - 通过保留isSystem值,增强了系统配置的管理能力,避免了不必要的数据丢失。
This commit is contained in:
@@ -133,6 +133,7 @@ public class SystemConfigService {
|
||||
SystemConfig existing = systemConfigMapper.findByKey(config.getConfigKey());
|
||||
if (existing != null) {
|
||||
config.setId(existing.getId());
|
||||
config.setIsSystem(existing.getIsSystem()); // 保留原有的 isSystem 值
|
||||
if (systemConfigMapper.update(config) > 0) {
|
||||
successCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user