config status

This commit is contained in:
jiangyong27 2025-03-03 15:31:54 +08:00
parent ddcc5b7224
commit ed9232cc2e
1 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,9 @@ func (s *Staff) SyncStaffSalary(month string) {
log.Errorf("username[%s] not config,skip!!", staff.Username)
continue
}
if config.Status == model.StaffConfigStatusDisable {
continue
}
staffService := service.NewStaff(staff, config)
salary, err = staffService.CalcSalary(salary, month)
if err != nil {