部署
This commit is contained in:
@@ -3,6 +3,7 @@ package purchase
|
||||
import (
|
||||
"context"
|
||||
"git.kumo.work/shama/service/client"
|
||||
"git.kumo.work/shama/service/lib/bean"
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
@@ -94,3 +95,40 @@ func (p *product) Delete(ctx context.Context, purchaseProductIds []int64) (err e
|
||||
err = xClient.Call(ctx, "Delete", purchaseProductIds, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsListAccounting struct {
|
||||
Page bean.Page
|
||||
Search ListAccountingSearch
|
||||
}
|
||||
type ListAccountingSearch struct {
|
||||
CustomIds []int64 // 客户
|
||||
PiSerial string // PI
|
||||
ProductSerial string // 货号
|
||||
ProductCustomSerial string // 客户货号
|
||||
PoSerial string // PO
|
||||
}
|
||||
|
||||
type ReplyListAccounting struct {
|
||||
List []ListAccountingItem `json:"list"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
type ListAccountingItem struct {
|
||||
Id int64 `json:"id"`
|
||||
PiSerial string `json:"piSerial"`
|
||||
PoSerial string `json:"poSerial"`
|
||||
FactoryName string `json:"factoryName"`
|
||||
ProductSerial string `json:"productSerial"`
|
||||
ProductCustomSerial string `json:"productCustomSerial"`
|
||||
ProductName string `json:"productName"`
|
||||
HasAccountingCount int64 `json:"hasAccountingCount"`
|
||||
}
|
||||
|
||||
// ListAccounting @TITLE 做账商品列表
|
||||
func (p *product) ListAccounting(ctx context.Context, args ArgsListAccounting) (reply ReplyListAccounting, err error) {
|
||||
xClient, err := client.GetClient(p)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "ListAccounting", args, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user