diff --git a/service/staff.go b/service/staff.go index 3dcd067..8ba7063 100644 --- a/service/staff.go +++ b/service/staff.go @@ -49,6 +49,9 @@ func (s *Staff) CalcSlaveSalary(salary *model.StaffSalary, month string) (*model } salary.BaseSalary = cast.ToFloat64(s.info.BaseSalary) salary.Master = s.info.Master + extra := make(map[string]interface{}) + extra["entryDate"] = s.info.EntryDate //展示排序依赖 + salary.Extra = goutil.EncodeJSON(extra) return salary, nil }