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 }