作者 tangxvhui

bug 修复

... ... @@ -378,10 +378,15 @@ func UpdateEmployeeData(data ModuleEmployee, om ...orm.Ormer) error {
ucompany.ChargeStatus = data.ChargeStatus
ucompany.ExtraText = data.ExtraText
ucompany.AdminType = data.AdminType
entryTime, err := time.ParseInLocation("2006-01-02", data.EntryTime, time.Local)
if err == nil {
ucompany.EntryTime = entryTime
}
cols := []string{"NickName", "OpenId", "Sex", "JobNum",
"Phone", "PrivatePhone", "Email", "ExtensionNum", "Workspace",
"IsBusiness", "Avatar", "Remarks", "AdminType", "ChargeStatus",
"ExtraText",
"ExtraText", "EntryTime",
}
err = models.UpdateUserCompanyById(ucompany, cols, o)
if err != nil {
... ...