extra
This commit is contained in:
parent
1613c16c9d
commit
71ef9fb8b4
|
@ -27,6 +27,7 @@ type Salary struct {
|
||||||
OtherDeduct string `json:"other_deduct,omitempty"`
|
OtherDeduct string `json:"other_deduct,omitempty"`
|
||||||
CreateTime string `json:"create_time,omitempty"`
|
CreateTime string `json:"create_time,omitempty"`
|
||||||
UpdateTime string `json:"update_time,omitempty"`
|
UpdateTime string `json:"update_time,omitempty"`
|
||||||
|
Extra string `json:"extra"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateSalaryReq struct {
|
type CreateSalaryReq struct {
|
||||||
|
@ -65,6 +66,7 @@ func (s *Salary) From(m *model.StaffSalary) {
|
||||||
s.OtherDeduct = goutil.FormatFloat(m.OtherDeduct)
|
s.OtherDeduct = goutil.FormatFloat(m.OtherDeduct)
|
||||||
s.CreateTime = goutil.TimeToDateTime(m.CreateTime)
|
s.CreateTime = goutil.TimeToDateTime(m.CreateTime)
|
||||||
s.UpdateTime = goutil.TimeToDateTime(m.UpdateTime)
|
s.UpdateTime = goutil.TimeToDateTime(m.UpdateTime)
|
||||||
|
s.Extra = m.Extra
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Salary) Add(o *Salary) {
|
func (s *Salary) Add(o *Salary) {
|
||||||
|
|
Loading…
Reference in New Issue