more400ProcessNum
This commit is contained in:
parent
95503ee529
commit
a9bc50b334
|
@ -43,7 +43,18 @@ func (s *SalaryCalculator1002) Calculate(salary *model.StaffSalary) map[string]i
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("db error:%s", err.Error())
|
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["processNum"] = len(processOrders)
|
||||||
|
data["processMore400Num"] = more400ProcessNum
|
||||||
|
data["processLess400Num"] = more400ProcessNum
|
||||||
|
|
||||||
//3.下属订单
|
//3.下属订单
|
||||||
corpUser, err := dao.NewExternalCorpUser().Get(s.user.Username)
|
corpUser, err := dao.NewExternalCorpUser().Get(s.user.Username)
|
||||||
|
|
Loading…
Reference in New Issue