config skip

This commit is contained in:
jiangyong 2024-05-06 10:41:33 +08:00
parent 1e1c502819
commit dafa43d688
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ func (s *Staff) SyncStaffSalary(month string) {
log.Errorf("db error :%s", err.Error())
continue
}
if config == nil {
log.Errorf("username[%s] not config,skip!!", staff.Username)
continue
}
// 试用期折扣
discount := cast.ToFloat64(config.Get(model.StaffSalaryExpDiscount))