From f98b33685ce4545d23464a9d21f350cab1e077f9 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Tue, 5 Nov 2024 14:12:48 +0800 Subject: [PATCH] extra sort --- service/staff.go | 3 +++ 1 file changed, 3 insertions(+) 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 }