query amount

This commit is contained in:
jiangyong27 2025-03-14 17:47:00 +08:00
parent 04baf5046d
commit 9bda1116fa
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ func (p *Payment) List(sess *session.AdminSession, req *api.ListPaymentReq) (int
i.From(payment)
items = append(items, i)
}
return total, 1000, items
totalAmount, err := dao.NewApprovalPaymentDao().QueryAmount(sess.GetCorpId(), req.Username, req.StartDay, req.EndDay, req.Payee, req.Payee)
session.CheckDBError(err)
return total, totalAmount, items
}
func (p *Payment) Suggest(sess *session.AdminSession, field string) interface{} {