staff extra

This commit is contained in:
jiangyong27 2024-11-04 18:07:41 +08:00
parent fb4cf50441
commit e4f39d38cf
1 changed files with 5 additions and 0 deletions

View File

@ -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"]))