作者 tangxuhui

修复 系统配置更新异常

@@ -153,6 +153,7 @@ func (systemSettingService *SystemSettingService) UpdateSystemSetting(updateSyst @@ -153,6 +153,7 @@ func (systemSettingService *SystemSettingService) UpdateSystemSetting(updateSyst
153 //未找到历史数据,使用默认配置 153 //未找到历史数据,使用默认配置
154 defaultSet := new(domain.SystemSetting).GetDefaultSetting(updateSystemSettingCommand.SettingCode) 154 defaultSet := new(domain.SystemSetting).GetDefaultSetting(updateSystemSettingCommand.SettingCode)
155 if len(defaultSet) > 0 { 155 if len(defaultSet) > 0 {
  156 + systemSetting= &domain.SystemSetting{}
156 *systemSetting = defaultSet[0] 157 *systemSetting = defaultSet[0]
157 systemSetting.CompanyId = updateSystemSettingCommand.CompanyId 158 systemSetting.CompanyId = updateSystemSettingCommand.CompanyId
158 } 159 }