alipay_uid
This commit is contained in:
parent
2672b475d5
commit
8d021096f7
|
@ -32,6 +32,7 @@ type StaffInfo struct {
|
||||||
OfficialDate string
|
OfficialDate string
|
||||||
BankName string
|
BankName string
|
||||||
BankCard string
|
BankCard string
|
||||||
|
AlipayUid string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAppHr(cfg *AppConfig) *AppHr {
|
func NewAppHr(cfg *AppConfig) *AppHr {
|
||||||
|
@ -78,6 +79,7 @@ func (h *AppHr) GetStaffInfo(userId string) (*StaffInfo, error) {
|
||||||
staff.EntryDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["12018"])), 0).Format("2006-01-02")
|
staff.EntryDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["12018"])), 0).Format("2006-01-02")
|
||||||
staff.BirthDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["11005"])), 0).Format("2006-01-02")
|
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.OfficialDate = time.Unix(cast.ToInt64(h.getFieldValue(fieldMap["12023"])), 0).Format("2006-01-02")
|
||||||
|
staff.AlipayUid = cast.ToString(h.getFieldValue(fieldMap["20004"]))
|
||||||
|
|
||||||
//fmt.Println(goutil.EncodeJSON(staff))
|
//fmt.Println(goutil.EncodeJSON(staff))
|
||||||
return staff, nil
|
return staff, nil
|
||||||
|
|
Loading…
Reference in New Issue