refactor(purchase): 重构更换工厂接口参数
- 移除旧的 FactoryId 和 PurchaseProductIds 字段 - 新增 PurchaseId、FactoryId 和 Products 字段- 新增 ProductChangeFactoryProductItem 和 BatchItem 结构体
This commit is contained in:
parent
5c8379b89b
commit
ced2bc460a
@ -71,8 +71,18 @@ func (p *product) Edit(ctx context.Context, args ArgsProductEdit) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ArgsProductChangeFactory struct {
|
type ArgsProductChangeFactory struct {
|
||||||
FactoryId int64 // 工厂id
|
PurchaseId int64 // 采购合同id
|
||||||
PurchaseProductIds []int64 // 采购商品id
|
FactoryId int64 // 工厂id
|
||||||
|
Products []ProductChangeFactoryProductItem // 采购商品id
|
||||||
|
}
|
||||||
|
|
||||||
|
type ProductChangeFactoryProductItem struct {
|
||||||
|
PurchaseProductId int64 // 采购产品id
|
||||||
|
Batches []BatchItem // 产品批次
|
||||||
|
}
|
||||||
|
type BatchItem struct {
|
||||||
|
BatchNo int64 // 批次号
|
||||||
|
PurchaseCount int64 // 采购数量
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChangeFactory @TITLE 更换工厂
|
// ChangeFactory @TITLE 更换工厂
|
||||||
|
Loading…
x
Reference in New Issue
Block a user