This commit is contained in:
jiangyong 2025-04-04 00:35:05 +08:00
parent 0a87aec351
commit 7443a95a24
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ func InitCorp1002(cron *gocron.Scheduler) {
}) })
//10号晚上8点发送工资单 //10号晚上8点发送工资单
cron.Every(1).Month(3).At("22:00").Do(func() { cron.Every(1).Month(4).At("00:50").Do(func() {
go staff.SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) go staff.SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601"))
go staff.PayStaffSalary(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) go staff.PayStaffSalary(corpId, time.Now().AddDate(0, -1, 0).Format("200601"))
}) })
@ -90,7 +90,7 @@ func InitCorp1000(cron *gocron.Scheduler) {
}) })
//10号晚上8点发送工资单 //10号晚上8点发送工资单
cron.Every(1).Month(3).At("22:00").Do(func() { cron.Every(1).Month(4).At("00:55").Do(func() {
go NewStaff().SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) go NewStaff().SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601"))
go NewStaff().PayStaffSalary(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) go NewStaff().PayStaffSalary(corpId, time.Now().AddDate(0, -1, 0).Format("200601"))
}) })