作者 tangxvhui

bug 修复

... ... @@ -165,7 +165,7 @@ func UpdateCompanyData(data ModuleCompanytData) error {
companyData.Logo = newCompanyData.Logo
companyData.Name = newCompanyData.Name
companyData.Remark = newCompanyData.Remarks
err = models.UpdateCompanyById(companyData, []string{"Logo", "Name", "AdminId"}, o)
err = models.UpdateCompanyById(companyData, []string{"Logo", "Name", "AdminId", "Remark"}, o)
if err != nil {
o.Rollback()
log.Error("更新公司数据失败:%s", err)
... ... @@ -318,6 +318,8 @@ func AddCompanyBase(centerCompany *ModuleCompanytData, admininfo *models.User, o
AdminId: admininfo.Id,
UserCenterId: companybase.AdminCompanyId,
Enable: models.COMPANY_ENABLE_NO,
Logo: companybase.Logo,
Remark: companybase.Remarks,
}
_, err = models.AddCompany(newCompany, o)
if err != nil {
... ...