From f9ab8a059bb9ba7a3d90d196f90da7285196054c Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 31 Mar 2025 11:15:52 +0800 Subject: [PATCH] suggest --- server/service/payment.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/service/payment.go b/server/service/payment.go index 6bc0d27..9842ca0 100644 --- a/server/service/payment.go +++ b/server/service/payment.go @@ -34,5 +34,9 @@ func (p *Payment) Suggest(sess *session.AdminSession, field string) interface{} counts, err := dao.NewApprovalPaymentDao().Count(sess.GetCorpId(), time.Now().AddDate(-1, 0, 0).Format("2006-01-02"), "", field) session.CheckDBError(err) + + for _, c := range counts { + c.Name = c.Key + } return counts }