perf salary
This commit is contained in:
parent
13d8012c89
commit
fb4cf50441
|
@ -26,6 +26,7 @@ type StaffInfo struct {
|
|||
StaffType string
|
||||
Idno string
|
||||
Salary float64
|
||||
PerfSalary float64
|
||||
Stock float64
|
||||
EntryDate string
|
||||
BirthDate string
|
||||
|
@ -80,6 +81,7 @@ func (h *AppHr) GetStaffInfo(userId string) (*StaffInfo, error) {
|
|||
staff.BirthDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["11005"])), 0).Format("2006-01-02")
|
||||
staff.OfficialDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["12023"])), 0).Format("2006-01-02")
|
||||
staff.AlipayUid = cast.ToString(h.getFieldValue(fieldMap["20004"]))
|
||||
staff.PerfSalary = cast.ToFloat64(h.getFieldValue(fieldMap["20004"]))
|
||||
|
||||
//fmt.Println(goutil.EncodeJSON(staff))
|
||||
return staff, nil
|
||||
|
|
Loading…
Reference in New Issue