This commit is contained in:
jiangyong27 2025-03-13 20:36:09 +08:00
parent 1613c16c9d
commit 71ef9fb8b4
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ type Salary struct {
OtherDeduct string `json:"other_deduct,omitempty"`
CreateTime string `json:"create_time,omitempty"`
UpdateTime string `json:"update_time,omitempty"`
Extra string `json:"extra"`
}
type CreateSalaryReq struct {
@ -65,6 +66,7 @@ func (s *Salary) From(m *model.StaffSalary) {
s.OtherDeduct = goutil.FormatFloat(m.OtherDeduct)
s.CreateTime = goutil.TimeToDateTime(m.CreateTime)
s.UpdateTime = goutil.TimeToDateTime(m.UpdateTime)
s.Extra = m.Extra
}
func (s *Salary) Add(o *Salary) {