staff extra
This commit is contained in:
parent
fb4cf50441
commit
e4f39d38cf
|
@ -22,6 +22,7 @@ type AppHr struct {
|
|||
type StaffInfo struct {
|
||||
UserName string
|
||||
RealName string
|
||||
Extra map[string]string
|
||||
Phone string
|
||||
StaffType string
|
||||
Idno string
|
||||
|
@ -68,6 +69,10 @@ func (h *AppHr) GetStaffInfo(userId string) (*StaffInfo, error) {
|
|||
log.Errorf("GetUserInfo error:%s", err.Error())
|
||||
return nil, err
|
||||
}
|
||||
for k, v := range fieldMap {
|
||||
staff.Extra[k] = h.getFieldValue(v)
|
||||
}
|
||||
|
||||
staff.UserName = userId
|
||||
staff.RealName = userInfo.RealName
|
||||
staff.Salary = cast.ToFloat64(h.getFieldValue(fieldMap["20001"]))
|
||||
|
|
Loading…
Reference in New Issue