取消板件自动写入逻辑修改

This commit is contained in:
lym
2025-02-22 14:14:20 +08:00
parent f5d512cd8e
commit ea1f664320
3 changed files with 6 additions and 3 deletions
@@ -368,6 +368,8 @@ public class CustomPlateNoServiceHandler extends AbstractSystemConfigServiceHand
@Override
public void modifySystemConfig(ConfigSaveReqVO reqVO) {
// 记录当前版本配置状态
int status = getSystemConfig(reqVO.getId()).getStatus();
// 校验规则
checkValid(reqVO.getSetting());
// 系统配置保存前操作
@@ -382,7 +384,7 @@ public class CustomPlateNoServiceHandler extends AbstractSystemConfigServiceHand
// 更新
systemConfigMapper.updateById(systemConfigDO);
} else {
systemConfigDO = BeanUtils.toBean(reqVO, SystemConfigDO.class);
systemConfigDO = BeanUtils.toBean(reqVO, SystemConfigDO.class).setStatus(status);
// 新增
systemConfigMapper.insert(systemConfigDO);
}