refactor: 移除用户表和配置表的冗余逻辑

This commit is contained in:
Ray.Hao
2026-02-27 09:54:03 +08:00
parent f32996d9c2
commit 739311381c
2 changed files with 2 additions and 8 deletions

View File

@@ -80,7 +80,6 @@ public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> impleme
"配置键已存在");
Config config = configConverter.toEntity(configForm);
config.setCreateBy(SecurityUtils.getUserId());
config.setIsDeleted(0);
return this.save(config);
}
@@ -122,11 +121,7 @@ public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, Config> impleme
@Override
public boolean delete(Long id) {
if (id != null) {
return super.update(new LambdaUpdateWrapper<Config>()
.eq(Config::getId,id)
.set(Config::getIsDeleted, 1)
.set(Config::getUpdateBy, SecurityUtils.getUserId())
);
return super.removeById(id);
}
return false;
}