From 169de4584693f1d126b8cf375a5cae93d59f4a49 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Fri, 11 Aug 2023 09:58:09 +0800 Subject: [PATCH] paymoney --- worker/autopay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/autopay.go b/worker/autopay.go index eab4738..c31ad01 100644 --- a/worker/autopay.go +++ b/worker/autopay.go @@ -123,7 +123,7 @@ func autoPayMoney(checkin *model.Checkin, checkinType string, payMoney int64) er message := make([]string, 0) duration := checkin.EndTime - checkin.StartTime message = append(message, fmt.Sprintf("【红包发放】[%s]", checkinType)) - message = append(message, fmt.Sprintf("发放金额:%s", fmt.Sprintf("%.2f", payMoney))) + message = append(message, fmt.Sprintf("发放金额:%s", fmt.Sprintf("%.2f", float64(payMoney)/100.00))) message = append(message, fmt.Sprintf("员工名称:%s", checkin.Username)) message = append(message, fmt.Sprintf("考勤日期:%s", checkin.Day)) message = append(message, fmt.Sprintf("开始时间:%s", goutil.TimeToDateTime(checkin.StartTime)))