From fb4cf504410fbe731d871d307f2ccfd088d565cf Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 4 Nov 2024 18:02:08 +0800 Subject: [PATCH] perf salary --- qyweixin/app_hr.go | 2 ++ 1 file changed, 2 insertions(+) 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