This commit is contained in:
jiangyong 2025-03-05 23:48:45 +08:00
parent 5fcaa6c0da
commit fe94af164a
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ func (s *SalaryCalculator1002) Calculate(salary *model.StaffSalary) {
if salary.UserName == "luoyi" {
salary.AttendDay = float64(salary.ShouldDay - 3)
} else if strings.ToLower(salary.UserName) == "wangyan" {
salary.AttendDay = float64(salary.ShouldDay) - 3.5
salary.AttendDay = float64(salary.ShouldDay) - 3.6
} else if strings.ToLower(salary.UserName) == "zhouhong" {
salary.AttendDay = float64(salary.ShouldDay) - 3.5
salary.AttendDay = float64(salary.ShouldDay) - 3.6
}
salary.AttendSalary = cast.ToFloat64(userSlary.Base) * (salary.AttendDay / float64(salary.ShouldDay))