作者 tangxvhui

bug 修复

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