perf salary

This commit is contained in:
jiangyong27 2024-11-04 18:02:08 +08:00
parent 13d8012c89
commit fb4cf50441
1 changed files with 2 additions and 0 deletions

View File

@ -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