问题修复
This commit is contained in:
37
erp/sale.go
37
erp/sale.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user