onduty exception

This commit is contained in:
jiangyong27 2023-08-18 18:33:48 +08:00
parent f0c53b3716
commit df45b7b837
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ var (
) )
func NotifyCheckinOnDuty(checkin *model.Checkin) { func NotifyCheckinOnDuty(checkin *model.Checkin) {
message := make([]string, 0) message := make([]string, 0)
message = append(message, "【上班提醒】") message = append(message, "【上班提醒】")
message = append(message, fmt.Sprintf("员工名称:%s", checkin.Username)) message = append(message, fmt.Sprintf("员工名称:%s", checkin.Username))
@ -40,7 +41,7 @@ func NotifyCheckinOnDuty(checkin *model.Checkin) {
return return
} }
if isOndutyPay(checkin, userConfig) { if isOndutyPay(checkin, userConfig) && checkin.Exception != "" {
payMoney := cast.ToInt64(userConfig.Get(model.CheckinOndutyMoney)) payMoney := cast.ToInt64(userConfig.Get(model.CheckinOndutyMoney))
if payMoney == 0 { if payMoney == 0 {
payMoney = 2000 payMoney = 2000