-
Notifications
You must be signed in to change notification settings - Fork 12
/
RawPurchaseOrderGapDto.go
46 lines (41 loc) · 1.45 KB
/
RawPurchaseOrderGapDto.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
package tmallgeniescp
import (
"sync"
)
// RawPurchaseOrderGapDto 结构体
type RawPurchaseOrderGapDto struct {
// 扩展参数
ExtendJson string `json:"extend_json,omitempty" xml:"extend_json,omitempty"`
// 租户
Tenant string `json:"tenant,omitempty" xml:"tenant,omitempty"`
// 关键日期值
KeyFigureDate string `json:"key_figure_date,omitempty" xml:"key_figure_date,omitempty"`
// 二级物料-物料编码
MaterielCode string `json:"materiel_code,omitempty" xml:"materiel_code,omitempty"`
// 二级物料-分仓目的地code
LocationCodeTo string `json:"location_code_to,omitempty" xml:"location_code_to,omitempty"`
// 二级物料-供应商code
LocationCode string `json:"location_code,omitempty" xml:"location_code,omitempty"`
// 二级物料PO GAP数
RawPoGapQty int64 `json:"raw_po_gap_qty,omitempty" xml:"raw_po_gap_qty,omitempty"`
}
var poolRawPurchaseOrderGapDto = sync.Pool{
New: func() any {
return new(RawPurchaseOrderGapDto)
},
}
// GetRawPurchaseOrderGapDto() 从对象池中获取RawPurchaseOrderGapDto
func GetRawPurchaseOrderGapDto() *RawPurchaseOrderGapDto {
return poolRawPurchaseOrderGapDto.Get().(*RawPurchaseOrderGapDto)
}
// ReleaseRawPurchaseOrderGapDto 释放RawPurchaseOrderGapDto
func ReleaseRawPurchaseOrderGapDto(v *RawPurchaseOrderGapDto) {
v.ExtendJson = ""
v.Tenant = ""
v.KeyFigureDate = ""
v.MaterielCode = ""
v.LocationCodeTo = ""
v.LocationCode = ""
v.RawPoGapQty = 0
poolRawPurchaseOrderGapDto.Put(v)
}