-
Notifications
You must be signed in to change notification settings - Fork 9
/
Orderitemwlbwmsstockoutordernotify.go
52 lines (47 loc) · 1.82 KB
/
Orderitemwlbwmsstockoutordernotify.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
package wms
import (
"sync"
)
// Orderitemwlbwmsstockoutordernotify 结构体
type Orderitemwlbwmsstockoutordernotify struct {
// 生产日期
ProduceDate string `json:"produce_date,omitempty" xml:"produce_date,omitempty"`
// 批次号
BatchCode string `json:"batch_code,omitempty" xml:"batch_code,omitempty"`
// ERP主键ID
OrderItemId string `json:"order_item_id,omitempty" xml:"order_item_id,omitempty"`
// ERP商品ID
ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
// 生产编码,同一商品可能因商家不同有不同编码
ProduceCode string `json:"produce_code,omitempty" xml:"produce_code,omitempty"`
// 订单商品拓展属性数据
ExtendFields string `json:"extend_fields,omitempty" xml:"extend_fields,omitempty"`
// 到货日期
DueDate string `json:"due_date,omitempty" xml:"due_date,omitempty"`
// 商品数量
ItemQuantity int64 `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
// 库存类型
InventoryType int64 `json:"inventory_type,omitempty" xml:"inventory_type,omitempty"`
}
var poolOrderitemwlbwmsstockoutordernotify = sync.Pool{
New: func() any {
return new(Orderitemwlbwmsstockoutordernotify)
},
}
// GetOrderitemwlbwmsstockoutordernotify() 从对象池中获取Orderitemwlbwmsstockoutordernotify
func GetOrderitemwlbwmsstockoutordernotify() *Orderitemwlbwmsstockoutordernotify {
return poolOrderitemwlbwmsstockoutordernotify.Get().(*Orderitemwlbwmsstockoutordernotify)
}
// ReleaseOrderitemwlbwmsstockoutordernotify 释放Orderitemwlbwmsstockoutordernotify
func ReleaseOrderitemwlbwmsstockoutordernotify(v *Orderitemwlbwmsstockoutordernotify) {
v.ProduceDate = ""
v.BatchCode = ""
v.OrderItemId = ""
v.ItemId = ""
v.ProduceCode = ""
v.ExtendFields = ""
v.DueDate = ""
v.ItemQuantity = 0
v.InventoryType = 0
poolOrderitemwlbwmsstockoutordernotify.Put(v)
}