diff --git a/service/salary_calculator/salary_calculator_1002.go b/service/salary_calculator/salary_calculator_1002.go index 297fe34..ac0bcbf 100644 --- a/service/salary_calculator/salary_calculator_1002.go +++ b/service/salary_calculator/salary_calculator_1002.go @@ -43,7 +43,18 @@ func (s *SalaryCalculator1002) Calculate(salary *model.StaffSalary) map[string]i if err != nil { log.Errorf("db error:%s", err.Error()) } + more400ProcessNum := int64(0) + less400ProcessNum := int64(0) + for _, o := range processOrders { + if o.TotalFee-o.RefundFee >= 40000 { + more400ProcessNum += 1 + } else { + less400ProcessNum += 1 + } + } data["processNum"] = len(processOrders) + data["processMore400Num"] = more400ProcessNum + data["processLess400Num"] = more400ProcessNum //3.下属订单 corpUser, err := dao.NewExternalCorpUser().Get(s.user.Username)