staff extra2

This commit is contained in:
jiangyong27 2024-11-04 18:13:17 +08:00
parent e4f39d38cf
commit 10492bab9f
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ func (h *AppHr) GetStaffInfo(userId string) (*StaffInfo, error) {
log.Errorf("GetUserInfo error:%s", err.Error()) log.Errorf("GetUserInfo error:%s", err.Error())
return nil, err return nil, err
} }
staff.Extra = make(map[string]string)
for k, v := range fieldMap { for k, v := range fieldMap {
staff.Extra[k] = h.getFieldValue(v) staff.Extra[k] = h.getFieldValue(v)
} }