正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -165,7 +165,7 @@ func UpdateCompanyData(data ModuleCompanytData) error { | @@ -165,7 +165,7 @@ func UpdateCompanyData(data ModuleCompanytData) error { | ||
165 | companyData.Logo = newCompanyData.Logo | 165 | companyData.Logo = newCompanyData.Logo |
166 | companyData.Name = newCompanyData.Name | 166 | companyData.Name = newCompanyData.Name |
167 | companyData.Remark = newCompanyData.Remarks | 167 | companyData.Remark = newCompanyData.Remarks |
168 | - err = models.UpdateCompanyById(companyData, []string{"Logo", "Name", "AdminId"}, o) | 168 | + err = models.UpdateCompanyById(companyData, []string{"Logo", "Name", "AdminId", "Remark"}, o) |
169 | if err != nil { | 169 | if err != nil { |
170 | o.Rollback() | 170 | o.Rollback() |
171 | log.Error("更新公司数据失败:%s", err) | 171 | log.Error("更新公司数据失败:%s", err) |
@@ -318,6 +318,8 @@ func AddCompanyBase(centerCompany *ModuleCompanytData, admininfo *models.User, o | @@ -318,6 +318,8 @@ func AddCompanyBase(centerCompany *ModuleCompanytData, admininfo *models.User, o | ||
318 | AdminId: admininfo.Id, | 318 | AdminId: admininfo.Id, |
319 | UserCenterId: companybase.AdminCompanyId, | 319 | UserCenterId: companybase.AdminCompanyId, |
320 | Enable: models.COMPANY_ENABLE_NO, | 320 | Enable: models.COMPANY_ENABLE_NO, |
321 | + Logo: companybase.Logo, | ||
322 | + Remark: companybase.Remarks, | ||
321 | } | 323 | } |
322 | _, err = models.AddCompany(newCompany, o) | 324 | _, err = models.AddCompany(newCompany, o) |
323 | if err != nil { | 325 | if err != nil { |
-
请 注册 或 登录 后发表评论