config skip
This commit is contained in:
parent
1e1c502819
commit
dafa43d688
|
@ -143,6 +143,10 @@ func (s *Staff) SyncStaffSalary(month string) {
|
||||||
log.Errorf("db error :%s", err.Error())
|
log.Errorf("db error :%s", err.Error())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if config == nil {
|
||||||
|
log.Errorf("username[%s] not config,skip!!", staff.Username)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// 试用期折扣
|
// 试用期折扣
|
||||||
discount := cast.ToFloat64(config.Get(model.StaffSalaryExpDiscount))
|
discount := cast.ToFloat64(config.Get(model.StaffSalaryExpDiscount))
|
||||||
|
|
Loading…
Reference in New Issue