query amount
This commit is contained in:
parent
04baf5046d
commit
9bda1116fa
|
@ -23,7 +23,10 @@ func (p *Payment) List(sess *session.AdminSession, req *api.ListPaymentReq) (int
|
||||||
i.From(payment)
|
i.From(payment)
|
||||||
items = append(items, i)
|
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{} {
|
func (p *Payment) Suggest(sess *session.AdminSession, field string) interface{} {
|
||||||
|
|
Loading…
Reference in New Issue