src/main/java/com/xcong/farmer/cms/modules/system/service/Impl/WebSettingServiceImpl.java
@@ -35,7 +35,13 @@ WebSettingEntity webSetting = WebSettingConversion.INSTANCE.dtoToEntity(setWebSettingDto); webSetting.setCompanyId(companyId); if (setWebSettingDto.getId() == null) { this.baseMapper.insert(webSetting); WebSettingEntity hasExist = this.baseMapper.selectByCompanyId(companyId); if (hasExist != null) { webSetting.setId(hasExist.getId()); this.baseMapper.updateById(webSetting); } else { this.baseMapper.insert(webSetting); } } else { this.baseMapper.updateById(webSetting); }