问题修复

This commit is contained in:
2024-10-23 15:16:45 +08:00
parent 2c56d5dbe6
commit 857852c2e3
2 changed files with 74 additions and 0 deletions

View File

@@ -278,3 +278,40 @@ func (s *sale) Clone(ctx context.Context, args ArgsSaleClone) (reply int64, err
err = xClient.Call(ctx, "Clone", args, &reply)
return
}
type ArgsSaleHistory struct {
Page bean.Page
Search SaleHistorySearch
}
type SaleHistorySearch struct {
ProductId int64 // 产品id
}
type ReplySaleHistory struct {
List []SaleHistoryItem `json:"list"`
Total int64 `json:"total"`
}
type SaleHistoryItem struct {
SaleId int64 `json:"saleId"`
PiSerial string `json:"piSerial"`
ContractDate time.Time `json:"contractDate"`
CustomName string `json:"customName"`
CustomShortName string `json:"customShortName"`
SalePrice decimal.Decimal `json:"salePrice"`
SaleCount int64 `json:"saleCount"`
SaleAmount decimal.Decimal `json:"saleAmount"`
SaleCurrency string `json:"saleCurrency"`
SaleCurrencyName string `json:"saleCurrencyName"`
SaleCurrencySymbol string `json:"saleCurrencySymbol"`
SaleCurrencyRate decimal.Decimal `json:"saleCurrencyRate"`
CreatedStaffId int64 `json:"createdStaffId"`
}
// History @TITLE 历史记录
func (s *sale) History(ctx context.Context, args ArgsSaleHistory) (reply ReplySaleHistory, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "History", args, &reply)
return
}