-
Notifications
You must be signed in to change notification settings - Fork 10
/
ErpWarehouseInventoryDto.go
55 lines (50 loc) · 1.74 KB
/
ErpWarehouseInventoryDto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package ascpffo
import (
"sync"
)
// ErpWarehouseInventoryDto 结构体
type ErpWarehouseInventoryDto struct {
// 仓名称
StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
// 仓编码
StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
// 货品条形码
WhcBarCode string `json:"whc_bar_code,omitempty" xml:"whc_bar_code,omitempty"`
// 货品编码
ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
// 货品名称
ScItemName string `json:"sc_item_name,omitempty" xml:"sc_item_name,omitempty"`
// 占用数量
LockQuantity string `json:"lock_quantity,omitempty" xml:"lock_quantity,omitempty"`
// 仓内实际库存数量(包含占用)
Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
// 扩展字段
Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
// 货品Id
ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
// 库存类型(1 良品,101 残品)
InventoryType int64 `json:"inventory_type,omitempty" xml:"inventory_type,omitempty"`
}
var poolErpWarehouseInventoryDto = sync.Pool{
New: func() any {
return new(ErpWarehouseInventoryDto)
},
}
// GetErpWarehouseInventoryDto() 从对象池中获取ErpWarehouseInventoryDto
func GetErpWarehouseInventoryDto() *ErpWarehouseInventoryDto {
return poolErpWarehouseInventoryDto.Get().(*ErpWarehouseInventoryDto)
}
// ReleaseErpWarehouseInventoryDto 释放ErpWarehouseInventoryDto
func ReleaseErpWarehouseInventoryDto(v *ErpWarehouseInventoryDto) {
v.StoreName = ""
v.StoreCode = ""
v.WhcBarCode = ""
v.ScItemCode = ""
v.ScItemName = ""
v.LockQuantity = ""
v.Quantity = ""
v.Feature = ""
v.ScItemId = 0
v.InventoryType = 0
poolErpWarehouseInventoryDto.Put(v)
}