作者 tangxvhui

bug 修复

... ... @@ -329,7 +329,7 @@ func UpdateEmployeeData(data ModuleEmployee) error {
log.Error("UpdateUserById err:%s", err)
return errors.New("更新用户数据失败")
}
ucompany.NickName = data.Name
ucompany.NickName = data.Name
ucompany.OpenId = data.OpenId
ucompany.Sex = data.Sex
... ... @@ -347,7 +347,7 @@ func UpdateEmployeeData(data ModuleEmployee) error {
ucompany.ExtraText = data.ExtraText
cols := []string{"NickName", "OpenId", "Sex", "JobNum",
"Phone", "PrivatePhone", "Email", "ExtensionNum", "Workspace",
"IsBusiness", "Status", "Avatar", "Remarks", "AdminType", "ChargeStatus",
"IsBusiness", "Avatar", "Remarks", "AdminType", "ChargeStatus",
"ExtraText",
}
err = models.UpdateUserCompanyById(ucompany, cols, o)
... ...