diff --git a/qyweixin/app_hr.go b/qyweixin/app_hr.go index 2c5f4a4..da49e65 100644 --- a/qyweixin/app_hr.go +++ b/qyweixin/app_hr.go @@ -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