summary
This commit is contained in:
parent
cb08275dfd
commit
fb73e8b084
|
@ -48,10 +48,7 @@ func (s *StaffSalary) List(sess *session.AdminSession, req *api.ListSalaryReq) (
|
||||||
for pos, m := range salarys {
|
for pos, m := range salarys {
|
||||||
staffSalary := new(api.Salary)
|
staffSalary := new(api.Salary)
|
||||||
staffSalary.From(m)
|
staffSalary.From(m)
|
||||||
summary.Add(staffSalary)
|
|
||||||
if pos < start || pos >= end {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
staffUser, err := dao.NewStaffUserDao().Get(m.UserId)
|
staffUser, err := dao.NewStaffUserDao().Get(m.UserId)
|
||||||
session.CheckDBError(err)
|
session.CheckDBError(err)
|
||||||
if staffUser != nil {
|
if staffUser != nil {
|
||||||
|
@ -60,6 +57,12 @@ func (s *StaffSalary) List(sess *session.AdminSession, req *api.ListSalaryReq) (
|
||||||
staffSalary.TargetSalary = userSalary.Target
|
staffSalary.TargetSalary = userSalary.Target
|
||||||
staffSalary.BaseSalary = userSalary.Base
|
staffSalary.BaseSalary = userSalary.Base
|
||||||
}
|
}
|
||||||
|
|
||||||
|
summary.Add(staffSalary)
|
||||||
|
if pos < start || pos >= end {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
items = append(items, staffSalary)
|
items = append(items, staffSalary)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue