more400ProcessNum

This commit is contained in:
jiangyong27 2025-04-01 22:01:26 +08:00
parent 95503ee529
commit a9bc50b334
1 changed files with 11 additions and 0 deletions

View File

@ -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)