extra sort

This commit is contained in:
jiangyong27 2024-11-05 14:12:48 +08:00
parent 26fb5fdb6f
commit f98b33685c
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ func (s *Staff) CalcSlaveSalary(salary *model.StaffSalary, month string) (*model
} }
salary.BaseSalary = cast.ToFloat64(s.info.BaseSalary) salary.BaseSalary = cast.ToFloat64(s.info.BaseSalary)
salary.Master = s.info.Master salary.Master = s.info.Master
extra := make(map[string]interface{})
extra["entryDate"] = s.info.EntryDate //展示排序依赖
salary.Extra = goutil.EncodeJSON(extra)
return salary, nil return salary, nil
} }