feat(erp): 添加收付款单据统计功能
- 在ReplyReceiptList中增加Count字段返回收据统计数据 - 新增ReceiptCount结构体包含EntryAmount、ReceivableFxAmount和ClaimAmount字段 - 在ReplyRequestList中增加Count字段返回请求统计数据 - 新增RequestCount结构体包含PrepaidAmount、Amount和PaidAmount字段 - 为收付款列表接口提供金额汇总统计支持
This commit is contained in:
@@ -41,6 +41,7 @@ type RequestSearch struct {
|
||||
type ReplyRequestList struct {
|
||||
List []RequestItem `json:"list"`
|
||||
Total int64 `json:"total"`
|
||||
Count RequestCount `json:"count"`
|
||||
}
|
||||
type RequestItem struct {
|
||||
Id int64 `json:"id"`
|
||||
@@ -75,6 +76,11 @@ type RequestItem struct {
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
type RequestCount struct {
|
||||
PrepaidAmount decimal.Decimal `json:"prepaidAmount"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
PaidAmount decimal.Decimal `json:"paidAmount"`
|
||||
}
|
||||
|
||||
// List @TITLE 列表
|
||||
func (r *request) List(ctx context.Context, args ArgsRequestList) (reply ReplyRequestList, err error) {
|
||||
|
||||
Reference in New Issue
Block a user