Dockerfile
This commit is contained in:
39
model/entity/stock/inventory_count_adjust_history.go
Normal file
39
model/entity/stock/inventory_count_adjust_history.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"assets/consts/public"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
// InventoryCountAdjustHistory 盘点调整历史表实体
|
||||
type InventoryCountAdjustHistory struct {
|
||||
beans.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
||||
|
||||
// 关联信息
|
||||
CountID *bson.ObjectID `bson:"countId" json:"countId"` // 盘点任务ID
|
||||
DetailID *bson.ObjectID `bson:"detailId" json:"detailId"` // 盘点明细ID
|
||||
AssetSkuID *bson.ObjectID `bson:"assetSkuId" json:"assetSkuId"` // 商品SKU ID
|
||||
WarehouseID *bson.ObjectID `bson:"warehouseId" json:"warehouseId"` // 仓库ID
|
||||
ZoneID *bson.ObjectID `bson:"zoneId" json:"zoneId"` // 库区ID
|
||||
LocationID *bson.ObjectID `bson:"locationId" json:"locationId"` // 库位ID
|
||||
|
||||
// 调整数据
|
||||
BeforeQuantity int `bson:"beforeQuantity" json:"beforeQuantity"` // 调整前库存
|
||||
AfterQuantity int `bson:"afterQuantity" json:"afterQuantity"` // 调整后库存
|
||||
Difference int `bson:"difference" json:"difference"` // 差值(可正可负)
|
||||
|
||||
// 元数据
|
||||
Reason string `bson:"reason" json:"reason"` // 调整原因
|
||||
AdjustedBy string `bson:"adjustedBy" json:"adjustedBy"` // 调整人ID
|
||||
AdjustedByName string `bson:"adjustedByName" json:"adjustedByName"` // 调整人姓名
|
||||
AdjustedAt *gtime.Time `bson:"adjustedAt" json:"adjustedAt"` // 调整时间
|
||||
BatchNo string `bson:"batchNo" json:"batchNo"` // 批次号(批量调整时)
|
||||
}
|
||||
|
||||
// CollectionName 获取集合名称
|
||||
func (InventoryCountAdjustHistory) CollectionName() string {
|
||||
return public.InventoryCountAdjustHistoryCollection
|
||||
}
|
||||
Reference in New Issue
Block a user